I've just downloaded the PrintManager product to do some prototyping. I'm having some behavior with Printer.Default.
In the Example console app that comes when installing the product, I'm stepping through the PrintToDefaultPrinterSimple() code snippet. The problem is that the Default.Printer is evaluating to a completely different printer than my actual default printer. It's almost like it's picking up the last local printer alphabetically.
In my own test asp.net web page, the same Default.Printer is evaluating to yet another printer, this one on my network, not the local one I've selected and can view in Windows.
So, I'm getting 2 different values from Default.Printer (one from your console app, one from my test asp.net page). I'm running Windows 7, asp.net 4, VS2010....
problems with "Default Printer"
Re: problems with "Default Printer"
Support · Jun 30, 2011Hello,
The “Printer.Default” property evaluates the printer name based on the user account under which the application is running. So in your case if you have hosted the web application in IIS on your local machine, your web application is running under IUSR account and it might have a different default printer set. When you are viewing the list of printers on your local machine you might have a different default printer set specific to your user account. If you run the same code in a windows application on your machine you will see that the Printer.Default will return the same printer you see in your list of printer.
Also please be advised that if you are hosting this web application on a server (different machine than your local one) and access the web page on your local machine, the PrintManager can only access the printers on the server and not your local machine.
Thanks,
ceTe Software Support Team