Runtime print from asp.net
-
Hi, I am develpoing an intranet application using ASP.Net which uses crystal reports. The IIS is installed in my machine. But the printer is connected to server. When I try to take printout it raises an error as: Error in File C:\inetpub\wwwroot\Temprt.rpt: Request cancelled by the user. The code I used is: crpt.PrintOptions.PrinterName = "\\geo01\hp LaserJet 1300 PCL 6" crpt.PrintToPrinter(1, False, 1, 1) Can any one please say me how to fix this problem. Thanx monika.
-
Hi, I am develpoing an intranet application using ASP.Net which uses crystal reports. The IIS is installed in my machine. But the printer is connected to server. When I try to take printout it raises an error as: Error in File C:\inetpub\wwwroot\Temprt.rpt: Request cancelled by the user. The code I used is: crpt.PrintOptions.PrinterName = "\\geo01\hp LaserJet 1300 PCL 6" crpt.PrintToPrinter(1, False, 1, 1) Can any one please say me how to fix this problem. Thanx monika.
First make it sure that you are able to take printout on that network printer normally like for testing you can just print a Wrod document. If you are able to take printout on that network priner, then copy your rpt file outside the wwwroot folder just to check the accessbilty of that file to printer.
Regards, Amit Kumar HDISM, PGDCA, MCP, MCAD, MCSD amit_chikara2002@hotmail.com