Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Amyuni PDF Converter
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00404363
Message ID:
00404413
Vues:
14
>>>Does anyone have any experience with this control? Would you recommend it? Was it easy to set up and control using VFP?
>>I would. Very fast, I have not had any problem with this product. They support VFP. I can give you some examples. Let me know.
>>Mark
>
>Some examples would be nice, thank you.
After you extract libs. and register CDINTF you can do something like this:

poPDFPrinter = CREATEOBJECT('CDINTF.CDINTF')

*!* initiate driver with name PDFPrinter
*!* after that PDFPrinter will appear in the list of printers
poPDFPrinter.PDFDriverInit('PDFPrinter')

*!* file name
poPDFPrinter.DefaultFileName = FileName + '.pdf'

*!* set resolution to 1200 for the best quality
poPDFPrinter.resolution = 1200

*!*update driver info with resolution info
poPDFPrinter.SetDefaultConfig()

*!* no prompt, use file name, broadcast messages
*!* we might need 'broadcast messages' to the future use of bookmarks
* Note: in order to insert bookmarks from VFP, message broadcasting should be enbaled
poPDFPrinter.FileNameOptions = 1 + 2 + 32

After that you can SET PRINTER TO NAME 'PDFPrinter'
Any REPORT FORM ..... will actually produce pdf file.
Mark
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform