Request cancelled by the user when printing Crystal Report

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

For reporting purposes I use Crystal Reports. The user can select a printer
from a dropdownlist. I set the printer with:

PrintOptions.PrinterName = @"\\SERVERNAME\" +
lstPrinter.SelectedValue.Trim();

and use PrintToPrinter(1, false, 0, 0); to print.

Now I get the message:
Error in File
C:\DOCUME~1\ASPNET\LOCALS~1\Temp\temp_f3d3ec6c-c2d9-47fc-90e5-b321c0f18873.rpt: Request cancelled by the user.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: CrystalDecisions.CrystalReports.Engine.InternalException:
Error in File
C:\DOCUME~1\ASPNET\LOCALS~1\Temp\temp_f3d3ec6c-c2d9-47fc-90e5-b321c0f18873.rpt: Request cancelled by the user

The report self is correct, an export to PDF instead of printing works.

Please help.
 
You can print the report from the server and the Printer must be installed on the server.Only than you can print.Second options is that you can use client side printing using window.print() of javascript.

If you got another options plese mail me at (e-mail address removed)

User submitted from AEWNET (http://www.aewnet.com/)
 
You can print the report from the server and the Printer must be installed on the server.Only than you can print.Second options is that you can use client side printing using window.print() of javascript.

If you got another options plese mail me at (e-mail address removed)

User submitted from AEWNET (http://www.aewnet.com/)
 
Back
Top