PrintDialog.ShowDialog() immediately returns DialogResult.Cancel

J

John A Grandy

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.
 
J

Jeff Johnson

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.

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

Wes

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();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top