Packagecom.flexmonster.pivot.vo
Classpublic class ExportOptions
InheritanceExportOptions Inheritance Object

The ExportOptions class is an enumeration of possible export options.



Public Properties
 PropertyDefined By
  destinationType : String = file
Defines where the component's content will be exported.
ExportOptions
  excelSheetName : String
Excel only.
ExportOptions
  filename : String
Default name of the resulting file.
ExportOptions
  fontUrl : String
PDF only.
ExportOptions
  footer : String
PDF and HTML only.
ExportOptions
  header : String
PDF and HTML only.
ExportOptions
  pageOrientation : String = portrait
PDF only.
ExportOptions
  showFilters : Object = null
Excel only.
ExportOptions
  showHeaders : Boolean = true
Show grid headers.
ExportOptions
  url : String = ()
To save file to the server you should provide the component with a path to the server-side script which can save this file.
ExportOptions
  useOlapFormattingInExcel : Boolean = true
Excel only.
ExportOptions
Public Constants
 ConstantDefined By
  PAGE_ORIENTATION_LANDSCAPE : String = landscape
[static] The constant to define landscape page orientation for pdf
ExportOptions
  PAGE_ORIENTATION_PORTRAIT : String = portrait
[static] The constant to define portrait page orientation for pdf
ExportOptions
Property Detail
destinationTypeproperty
public var destinationType:String = file

Defines where the component's content will be exported. Destination type can be DestinationType.FILE, DestinationType.SERVER or DestinationType.CLIPBOARD. Default value is DestinationType.FILE.

Please note that binary files (image, PDF, Excel) cannot be saved to the clipboard due to the Flash Player security policy.

See also

excelSheetNameproperty 
public var excelSheetName:String

Excel only. The name of sheet in the resulting file. Default value is "". If value is "" and the grid title is defined, the grid title will be used as a sheet name.

filenameproperty 
public var filename:String

Default name of the resulting file. Default value is "".

fontUrlproperty 
public var fontUrl:String

PDF only. Specifies the path to the external font (TTF) which will be used during exporting. This is optional. Default value is "".

footerproperty 
public var footer:String

PDF and HTML only. Footer in HTML format which is added to exported file. Only limited amount of tags are supported for PDF export: div, p, span, br, img with base64 src, some basic inline styles. The following tokens can be used for PDF export: ##TITLE##, ##CURRENT-DATE##, ##PAGE-NUMBER##, ##TOTAL-PAGES##. They will be replaced by appropriate data. The following tokens can be used for HTML export: ##TITLE##, ##CURRENT-DATE##. They will be replaced by appropriate data.

headerproperty 
public var header:String

PDF and HTML only. Header in HTML format which is added to exported file. Only limited amount of tags are supported for PDF export: div, p, span, br, img with base64 src, some basic inline styles. The following tokens can be used for PDF export: ##TITLE##, ##CURRENT-DATE##, ##PAGE-NUMBER##, ##TOTAL-PAGES##. They will be replaced by appropriate data. The following tokens can be used for HTML export: ##TITLE##, ##CURRENT-DATE##. They will be replaced by appropriate data.

pageOrientationproperty 
public var pageOrientation:String = portrait

PDF only. Specifies page orientation. Default value is PAGE_ORIENTATION_PORTRAIT.

showFiltersproperty 
public var showFilters:Object = null

Excel only. Indicates whether the filters info will be shown (true) in exported file or not (false). Default value is false.

showHeadersproperty 
public var showHeaders:Boolean = true

Show grid headers. Default value is true.

urlproperty 
public var url:String = ()

To save file to the server you should provide the component with a path to the server-side script which can save this file.

useOlapFormattingInExcelproperty 
public var useOlapFormattingInExcel:Boolean = true

Excel only. This parameter is useful if the OLAP formatting is applied on the grid (OptionsManager.useOlapFormatting is true). It indicates whether the data cells will be exported as formatted strings (true) or as numbers without applied OLAP format (false). Default value is true.

Constant Detail
PAGE_ORIENTATION_LANDSCAPEConstant
public static const PAGE_ORIENTATION_LANDSCAPE:String = landscape

The constant to define landscape page orientation for pdf

PAGE_ORIENTATION_PORTRAITConstant 
public static const PAGE_ORIENTATION_PORTRAIT:String = portrait

The constant to define portrait page orientation for pdf