Skip to Content
0
Former Member
Jul 15, 2011 at 07:28 PM

CRVS2010 ISCDReportClientDocument - Exception on Creation

108 Views

I have the following code block

The second line reports:

rcd.ReportDefController threw an exception of type CrystalDecisions.Shared.CrystalReportsException

The report file name was empty.

TotalUnitsByRadioTypeGraph GraphReport = new TotalUnitsByRadioTypeGraph();

CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rcd = GraphReport.ReportClientDocument;

CrystalDecisions.ReportAppServer.Controllers.ReportObjectController controller = rcd.ReportDefController.ReportObjectController;

CrystalDecisions.ReportAppServer.ReportDefModel.ReportObjects rptObjects = controller.GetAllReportObjects();

CrystalDecisions.ReportAppServer.ReportDefModel.ChartObject chartObject;

foreach (CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject reportObject in reportObjects)

{

if (reportObject is CrystalDecisions.ReportAppServer.ReportDefModel.ChartObject)

{

chartObject = (CrystalDecisions.ReportAppServer.ReportDefModel.ChartObject)reportObject;

chartObject.ChartStyle.TextOptions.Title = "GET THE SPANISH TITLE";

}

}