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);
FaisalPosted Dec 16, 2008, 12:37 AM
Annamalai samyPosted Dec 12, 2008, 12:01 AM
please check whether the strReportFilename contains full report file path
if you are taking more than on report using some loops add the code below to remove from the garbage collection
objDoc.Close();
objDoc.Dispose();
objDoc = null;
GC.Collect();
GC.WaitForPendingFinalizers();
Kheen On CheahPosted Nov 16, 2006, 5:21 AM
If I deploy to the server, I don't get any error but looks like it just hangs at PrintToPrinter.
Kheen On CheahPosted Nov 15, 2006, 10:29 PM