>
>Hmmmmm... Can I designate a file name and not have the print dialog display? Trying to automate a process that will create different PDF reports and then send automatic email with those as attachments.
>
>Renoir
Yes...here is one way (sort of).
set printer to name "Acrobat PDFWriter"
report form myReport to file "pdfTest." noconsole
Some comments:
The PDF reader will open, showing the report. This may or may not be acceptable. Processing will continue in VFP while the reader is opening. After the "REPORT FORM" line, you can check to see if the reader still has the file (treat it as a preview feature *grin*).
fh = fopen("pdfTest.pdf", 12)
if fh < 0
You can put this in some sort of loop after the file is created, so processing can continue in the manner you desire.
Also, there may be an empty file called "pdfTest." in the same location as "pdfTest.pdf"
HTH,
Steve Gibson