Preview inside a preview
Is there a way to have one report have a new custom button on the
preview form that will call another report and preview that using the
same filter criteria that the first report used, but display it in
another preview window.
Also, if the user either prints from the preview window, print both
reports (even if the user did not click the new custom button).
Or, if bypassing the preview dialog completly, just automatically print
both reports (the current one and the one that the new button would print).
preview form that will call another report and preview that using the
same filter criteria that the first report used, but display it in
another preview window.
Also, if the user either prints from the preview window, print both
reports (even if the user did not click the new custom button).
Or, if bypassing the preview dialog completly, just automatically print
both reports (the current one and the one that the new button would print).
This discussion has been closed.
Comments
Yes this should definitely be possible. Take a look at the following
article on adding a button to the preview window. From there you could
preview a different report (passing it the same parameters used in the
initial report).
http://www.digital-metaphors.com:8080/Output/Preview/How_To...Add_a_Button_to_the_Preview
You can also use the Report.AfterPrint event to determine whether the report
has been printed to the printer or not, then if it has, print another report
to the printer as well (using the same parameters).
http://www.digital-metaphors.com:8080/Output/Printer/Detecting_Whether_Report_Printed_to_Printer
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com