Powerbuilder default printer is not working

5 pts.
Tags:
PowerBuilder 11
PowerBuilder printing
Windows 7
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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following