Symptom
- Use the Crystal Reports .NET SDK to run a report - preview, export or print.
- The report contains no records.
- The ReportDocument.NoData event doesn't fire.
Environment
- Visual Studio 2010
- Crystal Reports for Visual Studio 2010
Reproducing the Issue
{
CrystalDecisions.CrystalReports.Engine.ReportDocument boReportDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
boReportDocument.NoData += new CrystalDecisions.CrystalReports.Engine.FormatPageEventHandler(Crystal_NoData);
}
private static void Crystal_NoData(CrystalDecisions.CrystalReports.Engine.FormatPageEventArgs e)
{
MessageBox.Show("No report data - page: " + e.PageNumber.ToString());
}
Cause
- The issue has been identified and logged under Problem Report ID ADAPT01554902.
- The problem is related to the FieldMapping event not firing.
Resolution
- No solution at the time of writing this article.
Keywords
KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Bug Filed
Product
SAP Crystal Reports, developer version for Microsoft Visual Studio