1

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!!!!

4

1 回答 1

0

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?

于 2013-08-22T06:14:52.587 回答