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
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: