on 12-23-2008 4:05 PM
I am using CR for VS .NET and the reports are designed in CR XI R2 version. From my VS development environment, I am able to use the PrintToPrinter function from asp.net C# code and able to print to the server's default printer. However, when I build the application and deploy it with the merge modules (that came with CR XI R2), the PrintToPrinter function never returns and hangs for ever. There are no exceptions being thrown. The account running the web application has admin privileges to network printers, shares etc. but it still does not work. The code to print is setup as follows:
ReportDocument objDoc=new ReportDocument();
// Load the report
objDoc.Load(strReportFilename);
.
.
.
// Print the report
objDoc.PrintToPrinter(1, true, 0, 0); <-- this hangs for ever
If I just view the report then that works ok; it is the direct printing that hangs. Any ideas?
Hi Faisal,
It seems that you are having issue with Crystal reports .Net SDK's.
Post your question in Crystal Reports .NET SDK forum.
That forum is monitored by qualified technicians and you will get a faster response there. Also, all .NET SDK queries remain in one place and thus can be easily searched in one place.
With more info:
What is the version of visual studio you are using?
Have you applied any service pack for crystal reports?
Are you printing a single report are more reports together?
Is the issue is with all the report?
Regards,
Shweta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.