Powerbuilder default printer is not working

5 pts.
Tags:
Microsoft Windows 7
PowerBuilder
PowerBuilder 11
Hello, I'm encountering weird issue when printing using PowerBuilder. I have a data window created in PowerBuilder calling the function $datawindow.print(false). But data that must be printed in local printer1 is printed in local printer2. I've checked if they are network printers but they are not. Below is the code I'm using in PB to print the content of the data window: //custom paper size ls_default = gf_get_current_Printer() dw_or_bare.Object.DataWindow.Print.Paper.Size = 256 dw_or_bare.Object.DataWindow.Print.CustomPage.Length = 140 // 10 inches dw_or_bare.Object.DataWindow.Print.CustomPage.Width = 216 // 7 inches dw_or_bare.Object.DataWindow.Print.PrinterName = ls_default dw_or_bare.print(false) I'm using PB11 and Windows 7

Software/Hardware used:
Powerbuilder 11, Windows 7

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: