I am tring to print crystal report on a printer server on intranet. The Printer setting on control panel is:
1. The share name of this printer is HP1200
2. The printer server name is printservdev
So in my C# (ASP.NET) code, it is:
report.PrintOptions.PrinterName = @"\\printservedev\HP1200";
report.PrintToPrinter(1,false,0,0);
But it always complains that:
CrystalDecisions.CrystalReports.Engine.InvalidArgumentException: Error in File C:\DOCUME~1\NIMBUS\ASPNET\LOCALS~1\Temp\temp_b2857a67-9cae-4f1e-9c0d-01e1e4e4c804.rpt: Invalid printer specified.
Can some one help me?
Thanks a lot.
1. The share name of this printer is HP1200
2. The printer server name is printservdev
So in my C# (ASP.NET) code, it is:
report.PrintOptions.PrinterName = @"\\printservedev\HP1200";
report.PrintToPrinter(1,false,0,0);
But it always complains that:
CrystalDecisions.CrystalReports.Engine.InvalidArgumentException: Error in File C:\DOCUME~1\NIMBUS\ASPNET\LOCALS~1\Temp\temp_b2857a67-9cae-4f1e-9c0d-01e1e4e4c804.rpt: Invalid printer specified.
Can some one help me?
Thanks a lot.