Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

OnCustomSaveDoc does not fire

edited August 2005 in General
Hi!

I assigned the OnCustomSaveDoc event:

procedure TfrmDLGQueryReports.dnResultCustomSaveDoc(Sender: TObject);
begin
showmessage('Custom Save Doc!');
end;

when I hit Save or Save As menu items, the assigned event doesn't fire.

The help file says:
"Provides full control over the report saving process. When this event
handler is assigned, you must provide the logic which will save the report."

What am I missing?

D7+RB7.03

Thanks

Juan Jose

Comments

  • edited September 2005
    Hi Juan,

    In my testing with a simple Report, Designer, and button on a form with RB
    9.02, the OnCustomSaveDoc event fired as expected. Are you able to get the
    event to fire in a minimal example like this? Is there anything else going
    on in your application such as the loading of templates?

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2005


    Nop!

    new app only with minimal example doesn't work!
    Al properties as default, only:

    1. assigned report to designer
    2. assigned OnCustomSaveDoc event.

    run program; hit Save button or menu but the event didn't hit. :(

    RB7.03+D7

    Juan Jose
  • edited September 2005
    Hi Juan,

    Try downloading a trial version of RB 9.02 for Delphi 7 and test with that.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2005
    Can I have 7.03 and 9.02 withouth any problem in the same delphi7
    installation?

    I really need to keep my installation working. I use some components that
    use the version 7.03. what about recompiling w/9.02? Could I reinstall 7.03
    without problems?

    Why don't we figure out if this is an issue with D7+RB7.03. May be somebody
    here is using this combination and can tell us if it is my specific
    installation or a bug.

    I also use TeeChart for RB7 and TRichView for RB7. This would be a mayor
    upgrade.

    If 9.02 worked for you, I suppose it will work for me too. But what does it
    mean regarding 7.03?

    Thanks.

    Juan Jose

This discussion has been closed.