Microsoft KB Archive/168573

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 21:50, 16 July 2020 by X010 (talk | contribs) (1 revision imported: importing part 2)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

PRB: Printer's Default Paper Size Not Used by Common Dialog Box


The information in this article applies to:

  • Microsoft Win32 Software Development Kit (SDK)


When you select a printer in a common Print dialog box, the paper size may not match the default setting for the selected printer. However, the system default printer seems to keep its default paper setting.


This occurs because the common Print dialog box maintains the current paper setting even when the printer selection is changed. In the case of dialog initialization, the current printer is either the system default printer or one specified by the application. In either case, the common Print dialog box is initialized with the printer's default paper setting.

The common Print dialog box maintains the paper setting because it assumes that users will want to print to the same paper type when they switch to a different printer. This may be contradictory to an application developer's assumption that a different selection in the common Print dialog box should be initialized with a specific printer's default paper setting.


If you prefer that each new selection in the Print dialog box be initialized with the printer's default paper setting, you need to implement your own Print dialog box so you can control the default settings.


This behavior is by design.


Steps to Reproduce Behavior

  1. Set one printer's default paper setting to an esoteric paper type.
  2. Set the default printer's default paper setting to Letter.
  3. Run WordPad.
  4. On the File menu, select Print.
  5. Select the printer used in step 1, and notice that the paper setting is Letter.
  6. Select the paper setting chosen in step 1.
  7. Select the default printer, and notice that the paper type does not change.

Additional query words:

Keywords : kbprint kbCmnDlg kbCmnDlgPrint kbOSWinNT kbOSWin2000 kbSDKWin32 kbGrpDSUser kbOSWin95 kbOSWin98 kbDSupport
Issue type : kbprb
Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch

Last Reviewed: July 5, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.