Print does not work from Powerbuilder

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
sureshk3
Posts: 29
Joined: Tue Jan 06 2004

Print does not work from Powerbuilder

Post by sureshk3 »

Hi, what are the steps to be followed to Print the document. My application just crashes,

Iam doing the following
long li_ret
Oleobject lole_1
lole_1 = Create oleobject
li_ret = lole_1.ConnecttoNewobject("PdfCreactiveX.PdfCreactiveX")
li_ret = lole_1.Open("c:\noa.pdf","")
lole_1.Print("\\ISAWSNTPS1\CalCtr010p1",0)

another thing is, I tried having the Prdfcreator control on the window as a Ole control and I had the noa.pdf open, then I tried the above code which I had placed in the Clicked event of a button , In that case it just printed a Blank Page.

PLease Let me know what the problem is?


Thanks in advance
Suresh
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello Suresh,

Try to print to a local or shared printer while specifying the printer name and not the server path.

By example:
lole_1.Print("HP LaserJet 6L",0)

Hope this helps.
sureshk3
Posts: 29
Joined: Tue Jan 06 2004

Post by sureshk3 »

actually the problem was I did call teh setlicense Key Function , thats why I was not able to Print.
Thanks for your response
Suresh
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Oups ! I completely forgot about SetLicenseKey when reading your code ! ! !
sureshk3
Posts: 29
Joined: Tue Jan 06 2004

Post by sureshk3 »

Thats ok, but u gave me useful solutions for other issues I had.
Post Reply