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.
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:
-
Select the File menu, and then select Print.
:::image type="content" source="media/page-setup-dialog-closed-print-support-app-installed/select-file-print.png" alt-text="Screenshot of selecting the File and Print buttons in Notepad.":::
-
Select the printer you want to use, and then select the Preferences button.
:::image type="content" source="media/page-setup-dialog-closed-print-support-app-installed/select-printer-preferences.png" alt-text="Screenshot of selecting a printer and Preferences in the Print dialog.":::
-
Once you confirm that the PSA has been launched, you can modify the page orientation setting there.
:::image type="content" source="media/page-setup-dialog-closed-print-support-app-installed/modify-page-orientation-setting.png" alt-text="Screenshot of modifying the Orientation setting.":::
Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
