April 7th, 2004, 05:39 AM
Printing Crystal report thro' ASp.Net
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:\DOCUME~1\banupriya\ASPNET\LOCALS~1\Temp\temp_2924ba53-898a-4038-a402-b1504cbdbe18.rpt: Request cancelled by the user.
The code I used is:
crpt.PrintOptions.PrinterName = "\\banupriya\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.
Thankyou for your reply.
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!