AndrewMozley
Programmer
I have a form class, anmprint which prints a report based on a cursor and a .frx file which the user supplies.
I offer the user a "Development" mode, which lets the user modify the report before printing. So I execute these two lines of code in my anmprint class
MODIFY REPORT MyReport
REPORT FORM MyReport TO PRINTER PROMPT NOCONSOLE
So the user sees the layout of the report, which he may modify. He may also right-click and preview the report. When he completes or abandons this modification, the 2nd line is executed: the standard printer dialogue appears, and he gets the report.
I notice however that I get a warning message while modifying the report, if I right-click and select 'Preview report'
SET REPORTBEHAVIOR is set to 80. Draft mode preview may not show dynamic behavior
I have tried to suppress this by including this command :
SET REPORTBEHAVIOR 90
This does indeed suppress the warning message. However if I right-click on the report design, and select Print preview to see a sample, it does not work as it used to. A preview is indeed displayed on screen, but I am then no longer in the report designer. Control passes to my next (REPORT FORM) instruction. I wanted to remain in the report designer, and this is what used to happen.
Is there a way that, with REPORTBEHAVIOR SET to 90, I can let the user preview a report and modify it until he is satisfied, and then save it?
Thanks. Andrew
I offer the user a "Development" mode, which lets the user modify the report before printing. So I execute these two lines of code in my anmprint class
MODIFY REPORT MyReport
REPORT FORM MyReport TO PRINTER PROMPT NOCONSOLE
So the user sees the layout of the report, which he may modify. He may also right-click and preview the report. When he completes or abandons this modification, the 2nd line is executed: the standard printer dialogue appears, and he gets the report.
I notice however that I get a warning message while modifying the report, if I right-click and select 'Preview report'
SET REPORTBEHAVIOR is set to 80. Draft mode preview may not show dynamic behavior
I have tried to suppress this by including this command :
SET REPORTBEHAVIOR 90
This does indeed suppress the warning message. However if I right-click on the report design, and select Print preview to see a sample, it does not work as it used to. A preview is indeed displayed on screen, but I am then no longer in the report designer. Control passes to my next (REPORT FORM) instruction. I wanted to remain in the report designer, and this is what used to happen.
Is there a way that, with REPORTBEHAVIOR SET to 90, I can let the user preview a report and modify it until he is satisfied, and then save it?
Thanks. Andrew