Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to PDF from foxpro
Message
 
 
À
08/06/2005 09:49:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01021260
Message ID:
01021353
Vues:
85
>Let me tell you about my program. Data will be selected in batches and then needs to be printed to PDF for each batch, without user interaction (path and file name must be specified in code). It will not work if the dialog box appears everytime the PDF file needs to be created. On the west-wind site I found the following code that looks like it will solve my problem, but ... Do we need to buy the class WWAPI and WWPDF (see SET PROCEDURE commands).
>
>*!*----------------------------------
>SET PROCEDURE TO WWAPI ADDITIVE
>
>SET PROCEDURE TO WWPDF ADDITIVE
>
>oPDF=CREATE("wwPDF50")
>
>lcCust = "A"
>
>SELECT * from TT_CUST INTO CURSOR Tquery
>
>llResult = oPDF.PrintReport("Report.frx",;
>
>  "c:\temp\MyPdf.pdf","FOR Customer = '"+lcCust+"'")
>*!*------------------------------------
As far as I remember, these particular classes are free, so you can use them. It is said on the site.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform