Can someone tell what is reportobjectName in the following line of code and how to get it from a crystal report RPT file?
ReportObject reportObject = Report.ReportDefinition.ReportObjects[reportObjectName];
Thanks in advance!!!!
Can someone tell what is reportobjectName in the following line of code and how to get it from a crystal report RPT file?
ReportObject reportObject = Report.ReportDefinition.ReportObjects[reportObjectName];
Thanks in advance!!!!
That is the actual name of the report. Here is an example from MSDN:
private ReportObject GetReportObject(string reportObjectName)
{
ReportObject reportObject;
reportObject =
Report.ReportDefinition.ReportObjects[reportObjectName];
return reportObject;
}
GetReportObject("CrystalReports.rpt");
ReportObject definition
Here is another example of defining the report details and then extracting it using the ReportObjects
How to find the ReportObjects in Crystal Report using Crystal Reports .NET SDK?