Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print PDF reports thru Acrobat ONLY and mail them.
Message
 
À
07/07/2006 06:35:28
Viman Nagar
Zensar Technologies
Pune, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000
Database:
Visual FoxPro
Divers
Thread ID:
01134070
Message ID:
01134589
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform