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?
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?