Symptom
ConvertNullFieldToDefault or ConvertOtherNullsToDefault do not exist in Crystal Reports for Visual Studio 2010 ReportOption collection.
Environment
Crystal Reports for Visual Studio 2010 Service Pack 2 or earlier
Cause
Enhancement was submitted.
Resolution
- Crystal Reports for Visual Studio 2010 Service Pack 3
- You can now add the options in either Report Engine or using Report Application Server:
- Crystal Decisions Report Engine:
CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rptClientDoc;
reportdocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
reportdocument.Load(@"c:\reports\group.rpt");
rptClientDoc = reportdocument.ReportClientDocument;
reportdocument.ReportOptions.ConvertNullFieldToDefault = true;
reportdocument.ReportOptions.ConvertOtherNullsToDefault = true;
- Crystal Decisions Report Application Server:
CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rptClientDoc;
rptClientDoc = reportdocument.ReportClientDocument;
rptClientDoc.ReportOptions.ConvertNullFieldToDefault = true;
rptClientDoc.ReportOptions.ConvertOtherNullsToDefault = true;
Keywords
ConvertNullFieldToDefault, ConvertOtherNullsToDefault, Crystal Reports for Visual Studio 2010, Crystal Reports, Report Options , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem
Product
SAP Crystal Reports, developer version for Microsoft Visual Studio