|
BUG: Printer Dialog Does Not Show for Common Dialog ControlArticle ID: Q152752Creation Date: 21-JUN-1996 Revision Date: 17-OCT-1996
The information in this article applies to:
SYMPTOMS
If the Common Dialog control is used to invoke an Open dialog box, and a
file is selected from that Open dialog box, and then the Printer dialog box
is invoked using the same Common Dialog control, the Printer dialog does
not appear.
WORKAROUND
The workaround is to reset the Flags property of the Common Dialog control
to zero (0) after showing the Open dialog box.
STATUS
Microsoft has confirmed this to be an issue in the Microsoft products
listed at the beginning of this article. Microsoft is researching this
problem and will post new information here in the Microsoft Knowledge Base
as it becomes available.
MORE INFORMATION
Steps To Reproduce Problem
Private Sub Command1_Click()
CommonDialog1.filename = "*.mdb"
CommonDialog1.ShowOpen
End Sub
Private Sub Command2_Click()
CommonDialog1.ShowPrinter
End Sub
Note that the Printer dialog box does not appear. To work around this problem, change the code in the click event of the second Command button to:
Private Sub Command2_Click()
CommonDialog1.Flags = 0
CommonDialog1.ShowPrinter
End Sub
Now the printer dialog box correctly shows even after the Open dialog has
been displayed.
|
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
©1997 Microsoft Corporation. All rights reserved. Legal Notices.