Author: benjaminbenjamin
Date: Sep 3, 2008 13:36
I have VFP 8 and Adobe Acrobat Prof.
I am attempting to have the user print directly to a PDF with code in
a commandbutton rather than going through the dialog box and select
the PDF driver.
I have tried :
lcprinter="Adobe PDF" && installed driver
set printer to (lcprinter)
report form MyForm.frx noconsole to printer
The report always goes to the Windows default driver (?set("printer",
2)).
I have unchecked the "printer environment" box on the reports menu for
the report form.
I can get it to work if I run it with a PROMPT command:
report form MyForm.frx noconsole to printer prompt &&this displace
the select printer dialog box
Any suggestions on how to print directly to a PDF file without going
through the printer dialog box?
|