Printing and exporting a report

The ReportClientDocument object model lets you modify print formatting options for a report, such as paper size, paper orientation, and page margin condition formulas. You can also modify various web pagination options that set the following:
  • Custom page size for web viewing.
  • Number of records or groups to paginate on.
  • Page footer clamp.
  • Orientation of a section in a report.
You can also export a Crystal report to many formats including:
  • Separated Values (CSV)
  • Microsoft Word - Editable (RTF) document
  • Microsoft Word (RTF) document
  • Microsoft Excel (XLS)
  • Microsoft Excel (XLS) Data-Only
  • Microsoft Excel (XLSX)
    Microsoft Excel (XLSX) Data-Only
  • PDF
  • Rich Text Format (RTF) document
  • Tab Separated Text (TTX) document
  • Text file
  • XML
  • Crystal Reports (RPT)
  • Crystal Reports Read-Only (RPTR)
    Note: Only reports created by SAP Crystal Reports 2011 can be exported to RPTR format.
Classes used when printing or exporting reports
  • com.crystaldecisions.sdk.occa.report.document.IPrintOptions
    Allows you to get and set the print options for a report.
  • com.crystaldecisions.sdk.occa.report.application.PrintOutputController
    Modifies various print formatting options and exports reports to a specific format.