4
Answers

Problem printing reports (Crystal Reports XI) using C# codes

Ask a question
Kheen On Cheah

Kheen On Cheah

17y
12.5k
1
I have an application that basically grabs the crystal report specified and send it to the printer for printing. My working version was using Crystal Reports 8.
Recently, I'm testing to print reports created using Crystal Reports XI. I've included the new crystal decisions library into my project but whenever I try to load the report, I keep getting "Load report failed" error.

ReportDocument objDoc=new ReportDocument();

// Load the report
objDoc.Load(strReportFilename); <-- Error happens here!
...
...
...

// Print the report
objDoc.PrintToPrinter(int.Parse(copies), true, 0, 0);


Answers (4)