Cancel or Stop report from RAP
Hi,
RB 10.08, D2007.
I am using the ReportOnInitializeParameters event in RAP to pop up a couple
of dialogs in order to capture some user info (this is not related to
autosearch values).
In this event, they can cancel the dialog and the report gets cancelled by
setting the ACancel parameter to True. All OK so far.
However, this event does not get fired when the user re-previews the report
from within the preview window. It only fires the first time.
My question is, which other event could I display these dialogs and still
stop the rest of the report if they click cancel?
The events I've tried, such as BeforePrint, do pop up the dialogs for each
preview but calling Report.Stop ( in RAP ) doesn't seem to have any effect.
Can anyone help please?
Regards, Paul.
RB 10.08, D2007.
I am using the ReportOnInitializeParameters event in RAP to pop up a couple
of dialogs in order to capture some user info (this is not related to
autosearch values).
In this event, they can cancel the dialog and the report gets cancelled by
setting the ACancel parameter to True. All OK so far.
However, this event does not get fired when the user re-previews the report
from within the preview window. It only fires the first time.
My question is, which other event could I display these dialogs and still
stop the rest of the report if they click cancel?
The events I've tried, such as BeforePrint, do pop up the dialogs for each
preview but calling Report.Stop ( in RAP ) doesn't seem to have any effect.
Can anyone help please?
Regards, Paul.
This discussion has been closed.
Comments
I'm a bit unclear about what you mean when you say a user "re-previews the
report from within the preview window". Have you tried possibly using the
BeforeOpenDatapipelines or AfterOpenDatapipelines events?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Have you tried calling Report.Cancel from the BeforePrint event? In my
quick testing this successfully cancelled the report.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com