PC Review


Reply
Thread Tools Rate Thread

PrintDialog.ShowDialog() immediately returns DialogResult.Cancel

 
 
John A Grandy
Guest
Posts: n/a
 
      1st Apr 2009
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.


 
Reply With Quote
 
 
 
 
Jeff Johnson
Guest
Posts: n/a
 
      13th Apr 2009
"John A Grandy" <johnagrandy-at-gmail-dot-com> wrote in message
news:(E-Mail Removed)...

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


 
Reply With Quote
 
 
 
 
Wes
Guest
Posts: n/a
 
      26th Apr 2009
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();


"John A Grandy" wrote:

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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace all soft returns with hard returns =?Utf-8?B?U3R5bGUtdGFtZXI=?= Microsoft Word Document Management 2 1st Feb 2007 12:09 AM
cell with value returns that value, empty cell returns zero =?Utf-8?B?dGFtYXJhaw==?= Microsoft Excel Worksheet Functions 2 15th Nov 2006 12:51 PM
=Now() returns #Name? and =Date() returns "compile error" Microsoft Access Reports 1 28th Jan 2004 12:28 AM
XP returns to Welcome screen immediately after login. Glenn S. Piper Windows XP Help 0 11th Nov 2003 07:59 PM
Recordset only returns first record, when Query SQL returns 51 records Alex Microsoft Access VBA Modules 1 16th Jul 2003 01:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:22 PM.