Skip to main content

[Migrated content. Thread originally posted on 02 May 2006]

Hello,
We are using the Print Preview to display a report created in Report Composer in version 6.0. It works fine when the program is run in Acubench, but when we copy it out to our production folder and run the executable, it does not work properly. The print preview displays fine, but when we hit 'Close' it closes, then pops up again. We have to hit 'Close' a second time to make it disappear. Has anyone run into this problem??

[Migrated content. Thread originally posted on 02 May 2006]

Hello,
We are using the Print Preview to display a report created in Report Composer in version 6.0. It works fine when the program is run in Acubench, but when we copy it out to our production folder and run the executable, it does not work properly. The print preview displays fine, but when we hit 'Close' it closes, then pops up again. We have to hit 'Close' a second time to make it disappear. Has anyone run into this problem??
I have been wrestling with requirement for print preview for some time now and have gone down the pfd writer route.

You say your are using the 'print preview'. Can you tell me exactly what you are using and how it works?

Regards
Keith

[Migrated content. Thread originally posted on 02 May 2006]

Hello,
We are using the Print Preview to display a report created in Report Composer in version 6.0. It works fine when the program is run in Acubench, but when we copy it out to our production folder and run the executable, it does not work properly. The print preview displays fine, but when we hit 'Close' it closes, then pops up again. We have to hit 'Close' a second time to make it disappear. Has anyone run into this problem??
If you create a graphical report called "StatRept" in Report Composer. Acubench automatically creates a routine called "Acu-StatRept-Preview" which brings up a preview of your report and allows you to format your page, select your printer, etc. It is similar to the print preview in Word. Hopefully this helps.

Acu-StatRept-PREVIEW.
PERFORM Acu-StatRept-PRINT-TOFILE
PERFORM Acu-StatRept-PRINT-PARA
SET ENVIRONMENT "DLL_CONVENTION" to "1"
CALL "AcuBenchPrintDummy"
ON EXCEPTION CALL "AcuBenchPrint.dll" END-CALL
END-CALL
CALL "AcuBenchPrintExecWBPreview" USING
BY CONTENT PRT-FULLFILENAME,
BY CONTENT PRINT-BROWSER-PARA,
BY CONTENT ACU-PAPER-HEADER,
BY CONTENT ACU-PAPER-FOOTER,
BY CONTENT ACU-PAPER-SIZE,
BY VALUE ACU-PAPER-ORIENTATIONINT,
BY CONTENT ACU-PRINTER-NAME
END-CALL

[Migrated content. Thread originally posted on 02 May 2006]

Hello,
We are using the Print Preview to display a report created in Report Composer in version 6.0. It works fine when the program is run in Acubench, but when we copy it out to our production folder and run the executable, it does not work properly. The print preview displays fine, but when we hit 'Close' it closes, then pops up again. We have to hit 'Close' a second time to make it disappear. Has anyone run into this problem??
Thanks for the quick reply.

I do not use AcuBench, and do not know exactly what the report composer is. I suppose I will need to look into this further, as without understanding what AcuBench is generating I am a little lost in the syntax you have shown me.

Regards
Keith