Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Amyuni PDF Converter
Message
From
13/08/2000 13:53:08
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00404363
Message ID:
00404413
Views:
13
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform