Hi there,
We have recently migrated from PB 2017 to PB2019 R2 build 2328.
Our application being assessed thru Citrix.
Application is not recognizing OS Windows 10 default printer.
it always prints to the last printer in the printer list.
I have tried the workaround as indicated in knowledge base
Windows API for GetDefaultPrinterW even it is showing up the last printer on the list as default printer.
Workstation does have a default printer set properly.
When we call printsetup(), it shows all the OS printers correctly, the issue is not the correct default printer is set.
When I run the same application PB2017 exe, default printer get set correctly without even calling windows API.
Any help is much appreciated.
Thanks
Selvam
Glad to hear that you can resolve one of the issues.
I can’t reproduce the issue ‘the printer dialog box shows twice’ using the code you provided. Maybe it is related to your code or environment.
I suggest you create a complete small case and see if it is reproducible and then provide it for us to further analyze.
Regards,
By any chance: You wouldn't be printing to "Microsoft PDF" would you? That one has the problem of trying to print once with the setup and then finally with the real print.
regards