>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