1. Aldo Lunardi
  2. PowerBuilder
  3. Friday, 17 November 2023 15:48 PM UTC

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.

Aldo Lunardi Accepted Answer Pending Moderation
  1. Friday, 1 December 2023 09:17 AM UTC
  2. PowerBuilder
  3. # 1

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

Comment
  1. Armeen Mazda @Appeon
  2. Sunday, 3 December 2023 03:52 AM UTC
If notepad has same problem, this is not a PB issue and it would be best to report this to Microsoft.
  1. Helpful
There are no comments made yet.
Aldo Lunardi Accepted Answer Pending Moderation
  1. Sunday, 26 November 2023 20:29 PM UTC
  2. PowerBuilder
  3. # 2

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.

Attachments (1)
Comment
  1. Mark Lee @Appeon
  2. Monday, 27 November 2023 05:00 AM UTC
Have you tired and verified the suggestion in my previous reply?

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,
  1. Helpful
There are no comments made yet.
Aldo Lunardi Accepted Answer Pending Moderation
  1. Thursday, 23 November 2023 22:09 PM UTC
  2. PowerBuilder
  3. # 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.

Attachments (1)
Comment
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Monday, 20 November 2023 06:46 AM UTC
  2. PowerBuilder
  3. # 4

I have an open support ticket about this:

https://www.appeon.com/standardsupport/search/view?id=11181

 

Comment
  1. René Ullrich
  2. Monday, 20 November 2023 07:42 AM UTC
Changing to legacy print dialog works for me.

  1. Helpful 1
  1. Mark Lee @Appeon
  2. Monday, 20 November 2023 08:10 AM UTC
Thanks for the confirmation!

Glad to hear that.

  1. Helpful
  1. René Ullrich
  2. Wednesday, 22 November 2023 06:37 AM UTC
Seems that Appeon don't want to fix this issue for datastores.
  1. Helpful
There are no comments made yet.
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Monday, 20 November 2023 04:54 AM UTC
  2. PowerBuilder
  3. # 5

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

Comment
  1. Mark Lee @Appeon
  2. Wednesday, 22 November 2023 02:59 AM UTC
In addition, I checked the notes of Microsoft's Windows 11. The list of resolved issues of version 22H2 includes the description of "Some installed printers might only allow default settings" and its workaround solution.

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.
  1. Helpful 1
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.