Printing Crystal report thro' 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 some other. 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)
Note: This code works when I connect & install the printer to my machine.
Can any one please say me how to fix this problem.
Thanx
monika.
|