p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Professional (http://p2p.wrox.com/forumdisplay.php?f=57)
-   -   Printing Crystal report thro' ASp.Net (http://p2p.wrox.com/showthread.php?t=47754)

monika.vasvani September 13th, 2006 05:59 AM

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.




All times are GMT -4. The time now is 05:49 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.