Edit

Share via


Page setup dialog might unexpectedly close after the print support app is installed

Symptoms

Consider the following scenario:

  • You're using Windows 10, version 22H2.
  • You're developing a print support app (PSA) for IPP-based printers.
  • You're using the Notepad or Paint application.

In this scenario, after you install the PSA on the system, toggling the page orientation setting might cause the host application to crash. For example, in notepad.exe, you can see the issue in the Page Setup dialog, as shown in the following screenshot.

Screenshot of toggling the page orientation setting.

Cause

This issue occurs because of a problem with the common dialog.

Workaround

To work around this issue, follow these steps to switch the page orientation setting:

  1. Select the File menu, and then select Print.

    Screenshot of selecting the File and Print buttons in Notepad.

  2. Select the printer you want to use, and then select the Preferences button.

    Screenshot of selecting a printer and Preferences in the Print dialog.

  3. Once you confirm that the PSA has been launched, you can modify the page orientation setting there.

    Screenshot of modifying the Orientation setting.