July 24th, 2003, 03:41 AM
Printing to a network printer
Has anyone any information on how to access printers that are installed on another machine on the network.
I've been using the PrinterSettings class but that only shows printers that are locally installed (and is no use to me whatsoever).
July 24th, 2003, 01:19 PM
Even better if anyone has tips on how to print to a network printer in another domain? I have the web-server on one domain and printers on another, and need to set up a couple of web-based apps that can print...
Any help would be much appreciated!
July 25th, 2003, 02:27 AM
I've now found a way for anyone who's interested, if you can access the network printer you can alter the machine.config to impersonate your user id (see the <impersonate> tag).
This will then allow your ASP.NET app to see all the printers that you as a user can see (throught the PrinterSettings.InstalledPrinters property).
July 25th, 2003, 02:28 AM
Sorry, that should be <identity> tag.