Reputation: 1197
→ Recently Upgraded from VS2008 (Integrated Crystal Report) to VS2022.
→ VS2022 auto upgraded Crystal Report 2008 to Crystal Report SP33 for VS2022 (installed manually).
All reports are working as before except one Crystal Report. It shows the below message.
Error: Please wait while the document is being processed.
Even after 30 min of waiting the error persists.
BUT
If instead of displaying i directly print it then there is no problem.
STRANGE!!!!
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports
and check if CRRuntime32Version and CRRuntimeMSMVersion has same Crystal Report version under it.
Result: I only have CRRuntime32Version Key available in it and it has right version written in it 13.0.33
Reconstructing the Crystal Report is the last option but will take so much time as this is a legacy code. Please let me know if you have come across solution for such a problem.
Code for Crystal Report displaying
ReportDocument Rpt = new ReportDocument();
Rpt = new Forms.Printing.Rpt_Sales();
Rpt.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.Auto;
Rpt.Refresh();
crystalReportViewer2.ReportSource = Rpt;
crystalReportViewer2.Refresh();
For the moment removed DataSource as no fields are present. Still the error persists.
Technology used
Upvotes: 3
Views: 513