Article ID: 173981 - Last Review: May 13, 2003 - Revision: 2.2 PRB: Behavior Differences of Print Dialog Box on Different PlatformsThis article was previously published under Q173981 On This PageSYMPTOMS
On Windows XP, Windows 2000, or Windows NT 4.0, when you call the ShowPrinter method of the CommonDialog control, some of the properties of the Printer object, such as the Copies and the Orientation properties, are not affected by changes that the user selects in the Print dialog box. This problem does not occur with the same properties of the Printer object on Microsoft Windows Millennium Edition (Me), Microsoft Windows 98, or Microsoft Windows 95. CAUSE
This problem occurs because the Printer object and the CommonDialog control do not share information. The object and the control have their own device context. For more information, see the "References" section.
RESOLUTION
You can work around this problem for the properties that the CommonDialog control exposes. To demonstrate this, replace the code for Form1 of the sample project in the "More Information" section with the following code, which assigns the property values from the CommonDialog control to the Printer object:
STATUSThis behavior is by design. MORE INFORMATION
The CommonDialog control only exposes the following properties:
322710
(http://support.microsoft.com/kb/322710/EN-US/
)
HOWTO: Raise and Control Print Dialogs from Visual Basic
Steps to Reproduce the Behavior
APPLIES TO
| Article Translations
|
Back to the top
