com.crystaldecisions.report.web.viewer
Class ReportExportControl

java.lang.Object
  extended bycom.crystaldecisions.report.web.ServerControl
      extended bycom.crystaldecisions.report.web.viewer.ReportServerControl
          extended bycom.crystaldecisions.report.web.viewer.ReportExportControl

public class ReportExportControl
extends ReportServerControl

This class provides exporting functionality. This includes the ability to preview an exported report in a web browser (if the web browser supports displaying the export format) or save an exported report to disk.

Note: The ReportExportControl object must be used by itself on a page. For example, the isOwnPage method must be set to true and no other controls can exist on the page. Additionally, the ReportExportControl object cannot be used with the getHtmlContent method.


Constructor Summary
ReportExportControl()
           
 
Method Summary
 void setExportAsAttachment(boolean bAsAttachment)
          Sets whether to export the files as an attachment.
 void setExportOptions(ExportOptions expOpt)
          Sets the export options and the export format for the report.
 
Methods inherited from class com.crystaldecisions.report.web.viewer.ReportServerControl
addReportPartBookmarkNavigationEventListener, addReportSourceChangeEventListener, dispose, getDatabaseLogonInfos, getEnterpriseLogon, getParameterFields, getRenderingDPI, getReportSource, getReportSourceClassFactoryName, getSelectionFormula, getStyleSheetFileName, getViewTimeSelectionFormula, isEnableLogonPrompt, isEnableParameterPrompt, isReuseParameterValuesOnRefresh, navigateTo, refresh, removeReportPartBookmarkNavigationEventListener, removeReportPartBookmarkNavigationEventListenerr, removeReportSourceChangeEventListener, setDatabaseLogonInfos, setEnableLogonPrompt, setEnableParameterPrompt, setEnterpriseLogon, setParameterFields, setRenderingDPI, setReportSource, setReportSourceClassFactoryName, setReuseParameterValuesOnRefresh, setSelectionFormula, setStyleSheetFileName, setViewTimeSelectionFormula
 
Methods inherited from class com.crystaldecisions.report.web.ServerControl
getHeight, getHtmlContent, getLeft, getName, getProductLocale, getTop, getURI, getViewState, getWidth, isIgnoreViewStateOnLoad, isOwnForm, isOwnPage, processHttpRequest, setHeight, setIgnoreViewStateOnLoad, setLeft, setName, setOwnForm, setOwnPage, setProductLocale, setTop, setURI, setViewState, setWidth
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportExportControl

public ReportExportControl()
Method Detail

setExportOptions

public void setExportOptions(ExportOptions expOpt)
Sets the export options and the export format for the report. The export options can also include the page range.

Note: You must provide a valid value for this method.

Parameters:
expOpt - A com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions object that specifies the export options and the export format for the report.

setExportAsAttachment

public void setExportAsAttachment(boolean bAsAttachment)
Sets whether to export the files as an attachment.

Note: The default value for this method is false. If you set this to true you are provided with a dialog box that allows you to export the report to disk. If the value is false then the report will export and display in the browser if the browser supports displaying the export format.

Parameters:
bAsAttachment - true to export the files as attachments.