Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print PDF reports thru Acrobat ONLY and mail them.
Message
 
 
To
07/07/2006 06:35:28
Viman Nagar
Zensar Technologies
Pune, India
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01134070
Message ID:
01134589
Views:
19
>Hi,
>
>If i set the Acrobat as default printer, it prompts me for the name of the file. Is there a way in Vfp that i could read that name which is given by the user?
>
>Ruchi

Shortly you can do it as follows:

Before printing, copy your FRX to the print output name. F.ex if your frx name is MyInvoice.frx (and frt) and you are printing an invoice which name is 20070707A1 then before printing, copy MyInvoice.frx (and frt) to 20070707A1. Then use that file to print your PDF
LOCAL lcDefaultPrinter, lcOutputName
m.lcDefaultPrinter = SET("PRINTER",3)
m.lcOutputName = "20070707A1"
SET PRINTER TO NAME "PrimoPdf"
COPY FILE "MyInvoice.*" TO m.lcOutputName+".*"
REPORT FORM m.lcOutputName TO PRINTER
* Here wait state to follow up when printwork is done
* Folowed with a windows script to Press OK button 
* In PrimoPDF preinter output window
ERASE m.lcOutputName+".*"
AT
Previous
Reply
Map
View

Click here to load this message in the networking platform