Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print Pdf with Ocx

Status
Not open for further replies.

lesieur

Programmer
Jan 8, 2004
5
BE
Hello,
There is someone who says to tell me who o can print a pdf file whit powerbuilder?
I'll have try to use the acrobat ocx but it's doesnt work fine. I can print one file but when i want to print more than one file, the ocx doesn't work. For example, i print 4 files and 3 files are printed and after it give me an error.
I use this code for print the pdf
...
ole_Pdf.object.LoadFile(Fichier_Pdf)
ole_Pdf.object.src = Fichier_Pdf
ole_Pdf.object.PrintAll()
...
Have no idea?

THanks
 
Try Amyuni PDF ocx [www.amyuni.com]
It works for me!!
 
Hi Lesieur,
I am trying to print a pdf file from powerbuilder. I looked at your code. Can you please tell me how you declare ole_pdf?. How you connect to the acrobat reader etc? i.e, can you please send me all the code that you use before the following code? . This is the code that you have given in your posting.

ole_pdf.object.LoadFile(Fichier_Pdf)
ole_pdf.object.src = Fichier_Pdf
ole_pdf .object.PrintAll()

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top