Export parameters
Products: FastReport Cloud, FastReport Corporate Server, FastReport Publisher
The export settings affect how the document will appear in the specified format. Currently, the following formats are supported:
- PDF;
- HTML;
- MHT;
- Image (Jpeg, Png, Gif, Bmp, Metafile, Tiff);
- Excel XML (Excel 2003+);
- CSV;
- DBF;
- Json;
- LaTeX;
- OpenOffice Calc / OpenOffice Writer;
- Word 2007;
- PowerPoint 2007;
- Excel 2007;
- XPS;
- PPML;
- PostScript;
- RTF;
- SVG;
- TXT;
- XAML;
- Zpl;
For all formats, there is one common property: PageRange, which determines which pages will be exported (All — all pages, Current — current page, PageNumbers — page numbers).
List of export parameters:
| Parameter name | Data type | Description |
|---|---|---|
| PdfCompliance | PdfStandard | Gets or sets PDF Compliance standard. |
| EmbeddingFonts | bool | Enable or disable the embedding of the TrueType fonts. |
| Background | bool | Enable or disable of exporting the background. |
| TextInCurves | bool | Enable or disable export text in curves. |
| ColorSpace | PdfColorSpace | Gets or sets PDF color space. |
| ImagesOriginalResolution | bool | Enables or disables saving images in their original resolution. |
| PrintOptimized | bool | Enables or disables optimization of images for printing. |
| JpegCompression | bool | Enable or disable image jpeg compression. |
| JpegQuality | int | Sets the quality of images in the PDF. |
| Title | string | Title of the document. |
| Author | string | Author of the document. |
| Subject | string | Subject of the document. |
| Keywords | string | Keywords of the document. |
| Creator | string | Creator of the document. |
| Producer | string | Producer of the document. |
| OwnerPassword | string | Sets the owner password. |
| UserPassword | string | Sets the user password. |
| AllowPrint | bool | Enable or disable printing in protected document. |
| AllowModify | bool | Enable or disable modifying in protected document. |
| AllowCopy | bool | Enable or disable copying in protected document. |
| AllowAnnotate | bool | Enable or disable annotating in protected document. |
| ShowPrintDialog | bool | Enable or disable the print dialog window after opening. |
| HideToolbar | bool | Enable or disable hide the toolbar. |
| HideMenubar | bool | Enable or disable hide the menu's bar. |
| HideWindowUI | bool | Enable or disable hide the Windows UI. |
| FitWindow | bool | Enable or disable of fitting the window. |
| CenterWindow | bool | Enable or disable of centering the window. |
| PrintScaling | bool | Enable or disable of scaling the page for shrink to printable area. |
| Outline | bool | Enable or disable of document's Outline. |
| DefaultZoom | MagnificationFactor | Set default zoom on open document. |
| RichTextQuality | int | Sets the quality of RichText objects in the PDF. |
| Compressed | bool | Enable or disable the compression in PDF document. |
| TransparentImages | bool | Enable or disable of images transparency. |
| DisplayDocTitle | bool | Enable or disable of displaying document's title. |
| DefaultPage | int | Set default page on open document. |
| ColorProfile | byte[] | Color Profile (ICC file). If "null" then default profile will be used. |
| ExportMode | ExportType | Gets or sets pdf export mode. |
| InteractiveForms | bool | Gets PDF AcroForms compatibility. |
| InteractiveFormsFontSetPattern | string | Set pattern for selection of embedding glyphs for Interactive Forms. |
| UseFileStream | bool | Enable or disable using FileStream instead of MemoryStream when exporting. |
| IsDigitalSignEnable | bool | Enable or disable digital sign for PDF document. |
| SaveDigitalSignCertificatePassword | bool | Should save and serialize password for digital sign certificate. |
| DigitalSignCertificate | X509Certificate2 | Manualy sets digital sign certificate for exported documents. |
| DigitalSignCertificatePath | string | The path for load digital sign certificate. |
| DigitalSignCertificatePassword | string | Sets digital sign certificate password. |
| DigitalSignLocation | string | Gets or sets the cpu host name or physical location of the signing. |
| DigitalSignReason | string | The reason for the signing. |
| DigitalSignContactInfo | string | The information to enable the recipient to contact the signer to verify the signature. |
| CurvesInterpolation | CurvesInterpolationEnum | The interpolation of curves (svg). |
| CurvesInterpolationText | CurvesInterpolationEnum | The interpolation of curves (text). |
| SvgAsPicture | bool | Export svg object as image, not vector. |
| GradientInterpolationPoints | GradientInterpolationPointsEnum | Gradient interpolation, high value will lead beautiful the gradient, but the file size will increase and the speed of work will decrease. |
| GradientQuality | GradientQuality | The quality of gradient, export as image or export as gradient grid. |
Html
| Parameter name | Data type | Description |
|---|---|---|
| EmbeddedImages | Dictionary<string, string> | Gets or sets images, embedded in html (hash:base64Image). |
| ReportID | string | Sets a ID of report. |
| OnClickTemplate | string | Sets an onclick template. |
| Layers | bool | Enable or disable layers export mode. |
| bool | Enable or disable showing of print dialog in browser when html document is opened. | |
| HighQualitySVG | bool | Enable or disable a picture optimization. |
| Preview | bool | Enable or disable preview in Web settings. |
| PageBreaks | bool | Enable or disable the breaks between pages in print preview when single page mode is enabled. |
| Format | HTMLExportFormat | Specifies the output format. |
| WidthUnits | HtmlSizeUnits | Specifies the width units in HTML export. |
| HeightUnits | HtmlSizeUnits | Specifies the height units in HTML export. |
| Pictures | bool | Enable or disable the pictures in HTML export. |
| EmbedPictures | bool | Enable or disable embedding pictures in HTML export. |
| ExportMode | ExportType | Gets or sets html export mode. |
| SinglePage | bool | Enable or disable the single HTML page creation. |
| Navigator | bool | Enable or disable the page navigator in html export. |
| SubFolder | bool | Enable or disable the sub-folder for files of export. |
| Wysiwyg | bool | Gets or sets the WYSIWYG quality of export. |
| ImageFormat | ImageFormat | Gets or sets the image format. |
| PrintPageData | HTMLPageData | Gets print page data. |
| SaveStreams | bool | Enable or disable saving streams in GeneratedStreams collection. |
| EnableMargins | bool | Enable or disable margins for pages. Works only for Layers-mode. |
| EnableVectorObjects | bool | Enable or disable export of vector objects such as Barcodes in SVG format. |
| NotRotateLandscapePage | bool | Not rotate landscape page when print. |
Image
Available image formats: jpeg, png, gif, bmp, mtf, tiff
| Parameter name | Data type | Description |
|---|---|---|
| ImageFormat | ImageExportFormat | Gets or sets the image format. |
| SeparateFiles | bool | Gets or sets a value that determines whether to generate separate image file for each exported page. |
| Resolution | int | Gets or sets image resolution, in dpi. |
| ResolutionX | int | Gets or sets horizontal image resolution, in dpi. |
| ResolutionY | int | Gets or sets vertical image resolution, in dpi. |
| JpegQuality | int | Gets or sets the jpg image quality. |
| MultiFrameTiff | bool | Gets or sets the value determines whether to produce multi-frame tiff file. |
| MonochromeTiff | bool | Gets or sets a value that determines whether the Tiff export must produce monochrome image. |
| MonochromeTiffCompression | EncoderValue | Gets or sets the compression method for a monochrome TIFF image. |
| PaddingNonSeparatePages | int | Sets padding in non separate pages. |
| SaveStreams | bool | Enable or disable saving streams in GeneratedStreams collection. |
Biff8
| Parameter name | Data type | Description |
|---|---|---|
| Wysiwyg | bool | Gets or sets a value that determines whether the wysiwyg mode should be used for better results. |
| PageBreaks | bool | Gets or sets a value that determines whether to insert page breaks in the output file or not. |
| HideGridLines | bool | Gets or sets a value that determines whether to hide gridlines. |
| PrintOptimized | bool | Enables or disables optimization of images for printing. |
Csv
| Parameter name | Data type | Description |
|---|---|---|
| Encoding | Encoding | Gets or set the resulting file encoding. |
| Separator | string | Gets or set the separator character used in csv format. |
| DataOnly | bool | Gets or sets a value that determines whether to export the databand rows only. |
| NoQuotes | bool | Gets or sets a value that disable quotation marks for text. |
| EscapeQuotes | bool | Gets or sets a value that disable escaping quotation marks for text. |
Dbf
| Parameter name | Data type | Description |
|---|---|---|
| Encoding | Encoding | Gets or sets the encoding. |
| DataOnly | bool | Gets or sets a value that determines whether to export the databand rows only. |
| ExportTypes | bool | Gets or sets a value that determines whether to export the types of fields. |
| FieldNames | string | Gets or sets the list of field names. |
Odt, Ods
| Parameter name | Data type | Description |
|---|---|---|
| Creator | string | Creator of the document. |
| IsXOTD | bool | Is XODT format. |
| PageBreaks | bool | Switch of page breaks. |
| Wysiwyg | bool | Gets or sets the WYSIWYG quality of export. |
| Locale | CultureInfo | Gets or sets locale for all document. |
| ExportLocale | bool | Gets or sets a value indicating that locale export are enabled. |
| OdfCompliance | OdfStandard | Gets or sets ODF Compliance standard. |
Docx
| Parameter name | Data type | Description |
|---|---|---|
| MatrixBased | bool | Enable or disable matrix view of document. |
| ParagraphBased | bool | Enable or disable Paragraph view of document. |
| DisableSectionBreak | bool | Disable section break in document. |
| Wysiwyg | bool | Gets or sets a value that determines whether the wysiwyg mode should be used for better results. |
| SaveRowHeight | bool | Gets or sets a value indicating whether to save the row height during export. |
| RowHeightIs | string | Gets or sets the type of height calculation. |
| RowHeight | RowHeightType | Gets or sets the type of height calculation. |
| PrintOptimized | bool | Enable or disable a resolution optimization. |
| MemoryOptimized | bool | Enable or disable the use of FileStream instead of MemoryStream. |
| Locale | CultureInfo | Get or set a locale for all document. |
| ExportLocale | bool | Gets or sets a value indicating that locale export are enabled. |
| UseHeaderAndFooter | bool | Gets or sets a value indicating that export will be used header and footer of Word page. |
| Bookmarks | bool | Gets or sets the value for adding bookmarks to each page. |
| DoNotExpandShiftReturn | bool | Enable or disable DoNotExpandShiftReturn. |
Pptx
| Parameter name | Data type | Description |
|---|---|---|
| ImageFormat | PptImageFormat | Gets or sets the image format used when exporting. |
| Locale | CultureInfo | Get or set a locale for all document. |
| ExportLocale | bool | Gets or sets a value indicating that locale export are enabled. |
Xlsx
| Parameter name | Data type | Description |
|---|---|---|
| PrintFit | PrintFitMode | Gets or sets PDF Compliance standard. |
| PrintScale | int | Gets or sets the print scaling (value from 10 to 400). |
| PinX | int | Gets or sets the pinned cells in X ordinate. |
| PinY | int | Gets or sets the pinned cells in Y ordinate. |
| UsePresetScale | bool | Sets or gets the flag using the preset print scale. |
| UseLocaleFormating | bool | Gets or sets a value that determines whether the using locale data formatting. |
| ShowGridlines | bool | Enable or disable show gridlines. |
| FontScale | float | Gets or sets the font scale value. Default value is 1. |
| PrintOptimized | bool | Enable or disable a resolution optimization. |
| SplitPages | bool | Each report page is placed on a new Excel page. |
| GroupOnSeparateSheet | bool | Each group is placed on a new Excel page. |
| GroupName | string | Name of the selected group. |
| Wysiwyg | bool | Gets or sets a value that determines whether the wysiwyg mode should be used for better results. |
| UseFileStream | bool | Enabling this option will reduce memory consumption, but increase the time of export. |
| CurrencyToAccounting | bool | Gets or sets a value indicating that currency should be converted to accounting format. |
| GeneralToText | bool | Gets or sets a value indicating that general should be converted to text format. |
| PageBreaks | bool | Gets or sets a value that determines whether to insert page breaks in the output file or not. |
| DataOnly | bool | Gets or sets a value that determines whether to export the databand rows only. |
| Seamless | bool | Enable or disable export of page footers and next page headers without table breaks. |
| PictureProperties | ePictureProperties | Gets or sets a value that determines whether to export the databand rows only. |
| UngroupSheets | bool | Grouping or ungrouping sheets. Grouping is enabled by default. |
Ppml
| Parameter name | Data type | Description |
|---|---|---|
| Pictures | bool | Enable or disable the pictures in PPML export. |
| TextInCurves | bool | Enable or disable export text in curves. |
| Quality | int | Gets or sets quality of JPEG images. |
PS
| Parameter name | Data type | Description |
|---|---|---|
| Pictures | bool | Enable or disable the pictures in PS export. |
| TextInCurves | bool | Enable or disable export text in curves. |
| PagesInDiffFiles | bool | Enable or disable export every page in separate file. |
| SaveImagesSeparately | bool | Enable or disable saving every image in separate file. |
| Quality | int | Gets or sets quality of JPEG images. |
Richtext
| Parameter name | Data type | Description |
|---|---|---|
| JpegQuality | int | Gets or sets the quality of Jpeg images in RTF file. |
| ImageFormat | RTFImageFormat | Gets or sets the image format that will be used to save pictures in RTF file. |
| Pictures | bool | Gets or sets a value indicating that pictures are enabled. |
| PageBreaks | bool | Gets or sets a value indicating that page breaks are enabled. |
| Locale | CultureInfo | Get or set a locale for all document. |
| ExportLocale | bool | Gets or sets a value indicating that locale export are enabled. |
| Wysiwyg | bool | Gets or sets a value that determines whether the wysiwyg mode should be used for better results. |
| PrintOptimized | bool | Gets or sets the PrintOptimized. |
| Creator | string | Gets or sets the creator of the document. |
| AutoSize | bool | Gets or sets a value that determines whether the rows in the resulting table should calculate its height automatically. |
| EmbedRichObject | bool | Gets or sets a value that determines whether the repot's RichObject will be translated as picture or joined to generated RTF. |
Svg
| Parameter name | Data type | Description |
|---|---|---|
| Pictures | bool | Enable or disable the pictures in SVG export. |
| ImageFormat | SVGImageFormat | Gets or sets the image format used when exporting. |
| EmbedPictures | bool | Embed images into SVG. |
| PreserveAspectRatio | AspectRatio | Gets or sets value indicating whether or not should to force uniform scaling of SVG document. |
| UseViewBox | bool | Gets or sets value indicating whether or not should be added 'viewBox' attribute to the svg tag. |
| UseWidthAndHeight | bool | Gets or sets value indicating whether or not should be added 'width' and 'height' attributes to the SVG tag. |
| PrefixStyle | string | Gets or sets the prefix for style classes and object ids. |
Text
| Parameter name | Data type | Description |
|---|---|---|
| AvoidDataLoss | bool | Enable or disable the Data loss avoiding. Auto calculation of ScaleX and ScaleY will be launched when dialogue window will be off. |
| Copies | int | Gets or sets the count of copies for printing of results. |
| PrinterName | string | Gets or sets the printer name for printing of results. |
| PrintAfterExport | bool | Enable or disable the printing results after export. |
| PrinterType | int | Gets or sets the active index of registered printer type. |
| PrinterTypes | List |
Gets or sets the list of printer types. |
| ScaleX | float | Gets or sets the scale by X axis for correct text objects placement. |
| ScaleY | float | Gets or sets the scale by Y axis for correct text objects placement. |
| Encoding | Encoding | Gets or sets the encoding of resulting document. |
| DataOnly | bool | Enable or disable the data only output without any headers. Default value is false. |
| PageBreaks | bool | Enable or disable the breaks of pages in resulting document. Default value is true. |
| Frames | bool | Enable or disable frames in resulting document. Default value is true. |
| TextFrames | bool | Enable or disable the text (non graphic) frames in resulting document. Default value is false. |
| EmptyLines | bool | Enable or disable the output of empty lines in resulting document. Default value is false. |
Xaml
| Parameter name | Data type | Description |
|---|---|---|
| WPFClassName | string | Gets or sets the class name of XAML document. |
| Pictures | bool | Enable or disable the pictures in XAML export. |
| ImageFormat | XamlImageFormat | Gets or sets the image format used when exporting. |
| IsScrolled | bool | Get or set scrollbar settings. |
| Images | Dictionary<string, MemoryStream> | Get dictionary of saved images. |
Xml
| Parameter name | Data type | Description |
|---|---|---|
| PageBreaks | bool | Gets or sets a value that determines whether to insert page breaks in the output file or not. |
| Wysiwyg | bool | Gets or sets a value that determines whether the wysiwyg mode should be used for better results. |
| Creator | string | Gets or sets the name of document creator. |
| DataOnly | bool | Gets or sets a value that determines whether to export the databand rows only. |
| SplitPages | bool | Each report page is placed on a new Excel page. |
Zpl
| Parameter name | Data type | Description |
|---|---|---|
| Density | ZplDensity | Sets the density of printer. |
| Version | ZplVersions | Gets or sets the version of ZPL. |
| PrinterInit | string | Sets the init string for sending before printing the document. |
| CodePage | string | Sets the code page of document. Default is UTF-8 (^CI28). |
| PrinterFinish | string | Sets the string for sending after printing the document. |
| PageInit | string | Sets the string for sending before printing each page. |
| FontScale | float | Sets the scale font size. |
| BarcodeScale | float | Sets the scale barcode size. |
| PrinterFont | string | Sets the Printer Font, default value is "A". |
| PrintAsBitmap | bool | Enable or disable export as bitmap. |