NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd on March 14, 2011, 10:04:41 PM

Title: Print a report to PDF and do not delete
Post by: terryd on March 14, 2011, 10:04:41 PM
I want to print a 1 or 2 page report to PDF and then email copies to various addresses after which I will delete (or save) the pdf file.
I would appreciate any help as to how to trap and save this file before Nettalk deletes it.
Title: Re: Print a report to PDF and do not delete
Post by: Bruce on March 14, 2011, 10:17:27 PM
In the report procedure search for the line;

loc:pdfname = '.\$$$' & format(random(1,99999),@n05) &'.pdf'

(search for $$$, the rest of the line may be slightly different).

This sets the name of the PDF being saved. The leading $$$ is the magic that makes it auto-delete.
So if you embed just below the line to some name without $$$ then you'll have control over the file.

cheers
Bruce
Title: Re: Print a report to PDF and do not delete
Post by: terryd on March 14, 2011, 10:47:31 PM
Thanks Bruce
I knew about the $$$ (mentioned in your book) but I didn't know what was the best place to fiddle with the filename.