I am running a report form that outputs to a PDF printer driver. The report works fine, but will not close the file when it is completed. If I run or that one report it places all the reports into the same file. How can I close the report file after the report is completed.
The code is very simple
SELECT statement
SET FILTER TO statement.ccustno = selector.ccustno
INDEX ON STR(statement.ccustno) + DTOC(statement.invdate) TO "c:\cobraprint\state"
SET INDEX TO "c:\cobraprint\state"
GO TOP
report form 'd:\cobra 2004\reports\stathtml.frx' TO PRINTER PROMPT
On the printer prmpt I select the pdf printer driver.
How do I close the pdf file.
The code is very simple
SELECT statement
SET FILTER TO statement.ccustno = selector.ccustno
INDEX ON STR(statement.ccustno) + DTOC(statement.invdate) TO "c:\cobraprint\state"
SET INDEX TO "c:\cobraprint\state"
GO TOP
report form 'd:\cobra 2004\reports\stathtml.frx' TO PRINTER PROMPT
On the printer prmpt I select the pdf printer driver.
How do I close the pdf file.