HI ,
I updated my PC to Windows 11 and whether using PowerBuilder 2021 or PowerBuilder 2022, by invoking the print dialogbox [Print(true, true)], the values set on the datawindow, paper orientation, number of copies, printer (selected via setup), are not set.
The default printer is always selected, with default settings.
By changing the default values on the print dialogbox, the report is produced correctly.
I gave all privileges to the printer for everyone, but nothing changes.
Can anyone help me?
Thanks for any suggestions.
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- Windows 11 does not allow setting values in the print dialogbox
- Aldo Lunardi
- PowerBuilder
- Friday, 17 November 2023 15:48 PM UTC
- Monday, 20 November 2023 04:54 AM UTC
- PowerBuilder
- # 1
Hi AIdo,
Thanks for your feedback. I'm not sure if I understand you completely. Please provide a reproduction case and screenshots to illustrate the problem.
In addition, Windows 11 itself has made adjustments to printing-related functions. Compared with Windows 10, as far as we know, the print dialogbox displayed by default is different.
It is recommended that you upgrade to the latest version of Windows 11 to see if the problem can be solved. If not, please try to verify these links as below, Restore the Legacy Print Dialog in Windows 11 22H2 using Registry Editor.
https://www.winhelponline.com/blog/restore-legacy-print-dialog-windows-11
https://answers.microsoft.com/en-us/windows/forum/windows_11-hardware/printing-from-win32-application-new-after/881db830-6c42-450c-bb93-0a08f62ca647?messageId=430a4c73-acc2-%204dd5-aeb3-13d65b03fd2b
Regards,
Mark
- Monday, 20 November 2023 06:46 AM UTC
- PowerBuilder
- # 2
I have an open support ticket about this:
https://www.appeon.com/standardsupport/search/view?id=11181
- René Ullrich
- Monday, 20 November 2023 07:42 AM UTC
-
Helpful Loading... Helpful 1
- Mark Lee @Appeon
- Monday, 20 November 2023 08:10 AM UTC
Glad to hear that.
-
Helpful Loading... Helpful 0
- René Ullrich
- Wednesday, 22 November 2023 06:37 AM UTC
-
Helpful Loading... Helpful 0
- Thursday, 23 November 2023 22:09 PM UTC
- PowerBuilder
- # 3
Hi Mark,
sorry for the delay, I was out of office.
I attach an example of a datawindows, where , in the print specifications, the paper orientation is landscape.
If I run the application on a Windows 2019 server and call printing, invoking the print dialogbox, "dwcontrol.Print (true, true)", the proposed paper orientation is that of the datawindow, landscape. If I do the same thing on a Windows 11 client,
all print options displayed, including paper orientation, are the printer's default ones and those defined in the data window are ignored. Even the "PrintSetupPrinter ( )" instruction has no effect and the printer proposed in the printer dialogbox always remains the default one in Windows 11.
I hope I have clarified my problem for you.
Thanks for your help,
Aldo.
- Sunday, 26 November 2023 20:29 PM UTC
- PowerBuilder
- # 4
Hi Mark,
sorry for the delay, I was out of office.
I attach an example of a datawindows, where , in the print specifications, the paper orientation is landscape.
If I run the application on a Windows 2019 server and call printing, invoking the print dialogbox, "dwcontrol.Print (true, true)", the proposed paper orientation is that of the datawindow, landscape. If I do the same thing on a Windows 11 client,
all print options displayed, including paper orientation, are the printer's default ones and those defined in the data window are ignored. Even the "PrintSetupPrinter ( )" instruction has no effect and the printer proposed in the printer dialogbox always remains the default one in Windows 11.
I hope I have clarified my problem for you.
Thanks for your help,
Aldo.
- Mark Lee @Appeon
- Monday, 27 November 2023 05:00 AM UTC
This problem is a bug of Windows 11 itself. We suggest that you upgrade Windows 11 to version 23H2 and see if it works.
Additionally, René Ullrich has verified that changing to legacy print dialog works for him.
Regards,
-
Helpful Loading... Helpful 0
- Friday, 1 December 2023 09:17 AM UTC
- PowerBuilder
- # 5
Hi Mark,
just for information, I updated my PC to Windows 11 23H2, but nothing changed. I tried with Notepad and it doesn't work either.
Regards,
Aldo
- Armeen Mazda @Appeon
- Sunday, 3 December 2023 03:52 AM UTC
-
Helpful Loading... Helpful 0
- Page :
- 1
However, you are not allowed to reply to this question.
https://learn.microsoft.com/en-us/windows/release-health/resolved-issues-windows-11-22h2#2913msgdesc
Therefore, this problem should be a bug in Windows itself, and similar problems occur when using Notepad, WordPad, Notepad++, etc.