Posted 4 August 2017, 3:09 pm EST
Attached is a sample of a combined report with a problem of rint Dialog.
The problem is that the print dialog have the Pages option Greyed Out when I try to include my own print button on the report as shown in the sample attached.
In the ActiveReport_Initialize event :
1 - If I do not Hide the Reports Default Print Button and NOT add a new print button (nothing in the Initialize Event)
clicking on the Reports Print Button shows the Pages Option
2 - If I hide the Print Button and use the new added Print Button, THE PAGES OPTION IS GREYED OUT.
3 - If I do not Hide the Reports Default Print Button and add a new print button. The following occurs:
+ Clicking on the new button first, the Pages option is greyed out.
Print then on the Report button, the Pages option will show but the page count is wrong.
+ Clicking on the Report button first, the Pages option is not greyed out and shows the correct pages.
Print then on the New Print button, the Pages option is not greyed out and shows the correct pages.
Using an added button, I capture the print action so I can run an update routine and unload the report. I am not sure if I can capture the print action using the reports default print button. AfterPrint Event ???
2008/02/Print Dialog With Combined Report.zip