Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PrintDialog.ShowDialog() immediately returns DialogResult.Cancel

65 views
Skip to first unread message

John A Grandy

unread,
Apr 1, 2009, 4:46:59 PM4/1/09
to
System.Windows.Forms.PrintDialog.ShowDialog()

Has anyone encountered an environment where this call immediately returns
DialogResult.Cancel ?

No print dialog is shown , no exception is thrown , no hang .... bizarre.

This doesn't happen on all our machines , just on a couple of Windows Server
2003 RC2 Enterprise x64 Edition boxes.


Jeff Johnson

unread,
Apr 13, 2009, 5:21:45 PM4/13/09
to
"John A Grandy" <johnagrandy-at-gmail-dot-com> wrote in message
news:OfO0Csws...@TK2MSFTNGP05.phx.gbl...

Just off the top of my head...any chance that these two servers have
absolutely no printers defined?


Wes

unread,
Apr 25, 2009, 10:24:01 PM4/25/09
to
I ran into this as well. I just set UseEXDialog to true working around it.
Not sure what the root cause was...


PrintDialog printDlg = new PrintDialog();
printDlg.Document = doc;
printDlg.UseEXDialog = true;

DialogResult res = printDlg.ShowDialog();

0 new messages