- Tracy Lamb
- PowerBuilder
- Friday, 31 January 2020 09:19 PM UTC
I have a default printer in Windows. In my application, when the print dialog box displays I select a different printer but the datawindow still prints to the Windows default printer. I have to close my application, change the Windows default printer, then re-open my application.
I've seen some suggestions on writing my own dialog windows and use a combination of PrintGetPrinter, PrintSetPrinter, GetDefaultPrinter, etc. This gets pretty complicated, and doesn't it defeat the purpose of the print dialog box?
Can someone share a script/method/window with me that will popup the print dialog box and then print to the selected printer?
Thank you,
Tracy
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.