I have a web method that renders a SQL Reporting Services report and prints
it to a network printer using the System.Drawing and System.Drawing.Printing
namespaces in .Net 2.0. This method has been working without issues in
production at several client sites but now I've started seeing memory errors
when trying to print. The only way to resolve the errors has been to do an
IISReset on the web server hosting the web service. I tried calling
Microsoft support for assistance in troubleshooting the issue and found out
that using System.Drawing in an ASP.Net application, ASP.Net Web Service and
in a Windows Service is not supported. Does anyone have any alternative ways
to print from a web service to a network printer? I'm trying to find a
managed code way of doing this but I'm not finding anything but
System.Drawing.Printing.
Thanks for the help.
Mark