lifesupport
Programmer
I'm trying to programmatically concatenate PDF reports. The first call seems to work, but saves it to the name of the project preceeded by "Project Manager". This file is always blank. The second call is triggered because the file DEMREPT.PDF doesn't exist. This time it prints correctly as well as the remaining reports that are attached. How can I get the report to print correctly the first time without having to call it twice. This will be confusing to users.
The pdf driver installs programmatically and correctly.
consol is off
set print is on
lcReport="DEMREPT.FRX"
IF pdfconcatenate
Report FORM (lcReport) NEXT NOCONSOLE NOPAGEEJECT &&prints to a file named 'Project manager - [name of project]'
pcmyfile="c:\output\"+ALLTRIM(lcreport)+".PS"
lcmyfile2="c:\yelpage\"+ALLTRIM(lcreport)+".PS"
IF NOT FILE(pcmyfile) and NOT FILE(lcmyfile2)
Report FORM (lcReport) NEXT (mtopcnt) NOCONSOLE NOPAGEEJECT &&if the report DEMREPT.PDF doesn't exsist, try again.
endif
The pdf driver installs programmatically and correctly.
consol is off
set print is on
lcReport="DEMREPT.FRX"
IF pdfconcatenate
Report FORM (lcReport) NEXT NOCONSOLE NOPAGEEJECT &&prints to a file named 'Project manager - [name of project]'
pcmyfile="c:\output\"+ALLTRIM(lcreport)+".PS"
lcmyfile2="c:\yelpage\"+ALLTRIM(lcreport)+".PS"
IF NOT FILE(pcmyfile) and NOT FILE(lcmyfile2)
Report FORM (lcReport) NEXT (mtopcnt) NOCONSOLE NOPAGEEJECT &&if the report DEMREPT.PDF doesn't exsist, try again.
endif