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);
}



SAP BusinessObjects
http://www.sap.com/sapbusinessobjects/
Support services
http://service.sap.com/bosap-support/
Product Documentation on the Web
http://help.sap.com/