General information
Category:
ActiveX controls in VFP
>>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only