Crystal Reports for Eclipse Developer Guide

To modify the formatting and layout of a subreport

  1. Retrieve an instance of the ReportDefController object.
  2. Retrieve an instance of the ReportDefinition object.
  3. Find the SubreportObject using its name.
  4. Modify the subreport.
Example: 
This sample modifies the width and height of a report.
void ModifySubreport(ReportClientDocument clientDoc, string reportObjectName)
{  
  ReportDefController reportDefController = clientDoc.getReportDefController();
  IReportDefinition reportDefinition = reportDefController.getReportDefinition();
  SubreportObject subreport = (SubreportObject)reportDefinition.findObjectByName(reportObjectName);
  subreport.setWidth(10080);
  subreport.setHeight(7200);
}



Business Objects, an SAP company
http://www.businessobjects.com/
Support services
http://www.businessobjects.com/services/support/
Product Documentation on the Web
http://support.businessobjects.com/documentation/