Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print Dialog doesn't show in Vista or Windows 7

Status
Not open for further replies.

Jrhaynes

Technical User
Oct 27, 2006
21
0
0
US
This is the code I use and it works fine on XP, 98, etc.

MainPrintDialog.Document = MainPrintDocument
If MainPrintDialog.ShowDialog = DialogResult.OK Then
MainPrintDocument.Print()
End If

The call to show it returns the integer 2 (cancel) and never shows the dialog. In fact, I so far have found no way possible to show the print dialog on Windows Vista or Windows 7!

Other print dialogs (print preview, page setup, etc) all work fine.

Is there something I am missing?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top