468,161 Members | 1,918 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,161 developers. It's quick & easy.

Cannot print to network printer in IIS6

We're using PrintDocument.Print method in a web application to print (ie not
on the client) (on Windows 2003)

Get InvalidPrinterException:
System.Drawing.Printing.InvalidPrinterException: Tried to access printer
'\\SAM\BrotherH' with invalid settings. at
System.Drawing.Printing.PrinterSettings.GetHdevmod eInternal() at
System.Drawing.Printing.PrinterSettings.GetHdevmod e(PageSettings
pageSettings) at
System.Drawing.Printing.PrintController.OnStartPri nt(PrintDocument document,
PrintEventArgs e) at
System.Windows.Forms.PrintControllerWithStatusDial og.OnStartPrint(PrintDocum
ent document, PrintEventArgs e) at
System.Drawing.Printing.PrintController.Print(Prin tDocument document) at
System.Drawing.Printing.PrintDocument.Print() at
PrintingGDI.WebForm1.Button1_Click(Object sender, EventArgs e)

We impersonate a windows user with enough privelages to print on network
printers.

Code works on Windows 2000 Server, and even to local printer on Windows
2003.

Any ideas what might be different when asp.net runs under II6 on 2003 Server
?

Thanks
Nov 18 '05 #1
0 1560

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by KohlerTommy | last post: by
1 post views Thread by Maileen | last post: by
reply views Thread by Broadica | last post: by
13 posts views Thread by Daniel Crespo | last post: by
reply views Thread by gcreed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.