Search

PrintDocument does not work on Vista 64 by twoelfer

Closed
as Not Reproducible Help for as Not Reproducible

12
Sign in to vote
0
Sign in to vote
Sign in
to vote
Type: Bug
ID: 242908
Opened: 12/3/2006 9:10:53 AM
Access Restriction: Public
Duplicates: 228936
0
Workaround(s)
7
User(s) can reproduce this bug
this code:

PageSetupDialog dialog = new PageSetupDialog();
dialog.Document = new PrintDocument();
dialog.ShowDialog();

when compiled for a x64 target, works fine on xp64 and vista x64. when compiled for a x86 target, it still works fine under xp64, but it does _not_ work on vista 64. on vista 64, no installed printers are found and thus an InvalidPrinterException is thrown.
Details (expand)
Product Language
English

Version

.NET Framework 2.0
Operating System
Windows Vista
Operating System Language
English
Steps to Reproduce
create a c# windows.forms project and a add button to the form. add this code to the button click event handle:

PageSetupDialog dialog = new PageSetupDialog();
dialog.Document = new PrintDocument();
dialog.ShowDialog();

compile for a x86 target cpu. run the resulting app on vista x64. Ensure a printer is installed (and a default printer is set.) An InvalidPrinterException is thrown. The exception details say "No printers installed.".
Actual Results
Does not see installed printers.
Expected Results
Should see installed printers.
TAP Code (if applicable)
 
      You can indicate your satisfaction with how Microsoft handled this issue by completing this quick 3 question survey. [Details]

 

File Attachments
0 attachments
Sign in to post a comment.
Posted by twoelfer on 1/17/2007 at 6:54 AM
is anybody actually reading this stuff? this issue is 6 weeks old....
Posted by Scott Berry on 2/20/2007 at 9:21 AM
It doesn't look like we'll be able to address this issue by the upcoming Beta, but we are aware of the issue and will investigate a fix as soon as we can. Sorry for the delay.

Scott
UI Fx Client Team
Posted by Microsoft on 3/19/2007 at 3:22 PM
Thank you for your Feedback!
We are currently investigating the issue at our end. We will make sure we update you on any progress we make on this bug.

Thank you,
UIFx Client Team
Posted by Microsoft on 3/30/2007 at 5:14 PM
Thanks for your feedback on the .NET Framework! Unfortunately we were not able to repro the issue you reported at our end and have hence closed the issue as "No Repro".
Please feel free to reactivate the issue if you can provide us with a repro project to repro the symptons you reported at our end.

Thx,
UIFx Team
Posted by markrae on 6/9/2007 at 12:05 PM
I'm seeing exactly the same issue with the following code:

using System.Drawing.Printing;

using (PrintDocument objPrintDocument = new PrintDocument())
{
     string strDefaultPrinter =
objPrintDocument.PrinterSettings.PrinterName;
}
Posted by Mr Shaun Warburton on 10/23/2007 at 5:41 PM
Got the very Same problem on Vista 32 can see the printer on an XP computer but can't print says access is denied.