G
Guest
I have a web application running on IIS 6 with .net 2,I am using
ReportDocument object model in crystal reports to print some reports, I am
not using the report viewer control, it is all in the code, the user just
press a custom link, and then the report is printed.
Here are the printing methods
PrintOptions printOptions = report.PrintOptions;
printOptions.PrinterName = printerName;
printOptions.PaperOrientation = PaperOrientation.Portrait;
printOptions.PaperSize = PaperSize.PaperA4;
printOptions.PrinterDuplex = PrinterDuplex.Simplex;
report.PrintToPrinter(numberOfCopies, false, 0, 0);
Now my problem is the report prints as long as the (IIS process user) whose
identity is used to run the w3wp, is phisically logged on the IIS server, but
if no user is logged on I got the “Invalid Printer specified†error.
I tried to add the printer to the default user account on IIS server using
ther article in here
http://g.msn.com/9SE/1?http://suppo...d7c704ec27841de&POS=2&CM=WPU&CE=2&CS=AWP&SR=2
And also add it explicity to (IIS process user) but the same erorr is still
in place
Any ideas will be mostly appreciated .
ReportDocument object model in crystal reports to print some reports, I am
not using the report viewer control, it is all in the code, the user just
press a custom link, and then the report is printed.
Here are the printing methods
PrintOptions printOptions = report.PrintOptions;
printOptions.PrinterName = printerName;
printOptions.PaperOrientation = PaperOrientation.Portrait;
printOptions.PaperSize = PaperSize.PaperA4;
printOptions.PrinterDuplex = PrinterDuplex.Simplex;
report.PrintToPrinter(numberOfCopies, false, 0, 0);
Now my problem is the report prints as long as the (IIS process user) whose
identity is used to run the w3wp, is phisically logged on the IIS server, but
if no user is logged on I got the “Invalid Printer specified†error.
I tried to add the printer to the default user account on IIS server using
ther article in here
http://g.msn.com/9SE/1?http://suppo...d7c704ec27841de&POS=2&CM=WPU&CE=2&CS=AWP&SR=2
And also add it explicity to (IIS process user) but the same erorr is still
in place
Any ideas will be mostly appreciated .