cancel
Showing results for 
Search instead for 
Did you mean: 

PrintToPrinter function hangs when deployed with the CR XI R2 merge modules

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)