Updating report summary information

The ReportClientDocument class can be used to update the summary information of a report. Summary information of a report can contain the author's name, comments, keywords, subject, title, and whether a preview image is saved.
To update a report's summary information:
  • Get the ISummaryInfo object. The summary information contains the author's name, comments, keywords, subject, title, and whether a preview image is saved.
  • Set the name of the author in the summary information of the report.
  • Commit the changes by modifying the existing summary information of the report.
Example: 
void updateReportSummary(ReportClientDocument rcd) throws ReportSDKException
{
  ISummaryInfo summaryInfo = rcd.getReportDocument().getSummaryInfo();
  ISummaryInfo newSummaryInfo = (ISummaryInfo) summaryInfo.clone(true);
  newSummaryInfo.setAuthor("Author Name");
  rcd.modifySummaryInfo(newSummaryInfo);
}
This list includes the classes used by the sample code:
  • com.crystaldecisions.sdk.occa.report.application.ReportClientDocument
  • com.crystaldecisions.sdk.occa.report.document.ISummaryInfo
  • com.crystaldecisions.sdk.occa.report.lib.ReportSDKException