ExportToPDF
Definition
Namespace:Telerik.WinControls.UI.Export
Assembly:TelerikData.dll
Syntax:
public class ExportToPDF : IExportGridTo
Inheritance: objectExportToPDF
Implements:
Constructors
Properties
Gets or sets the child view export mode.
public ChildViewExportMode ChildViewExportMode { get; set; }
The child view export mode.
Gets or sets the encoding used for the exported file. Default encoding is UTF8.
public Encoding Encoding { get; set; }
Set if child rows should be exported.
public bool ExportHierarchy { set; }
Set to export visual settings e.g. background colors, font, alignment, conditional formatting etc. Default value: false.
public bool ExportVisualSettings { set; }
Set the file extension. Default value is pdf.
public string FileExtension { set; }
Implements:
Set table to fit to pdf page width
public bool FitToPageWidth { set; }
Set how to export hidden column.
public HiddenOption HiddenColumnOption { set; }
Implements:
Set how to export hidden rows.
public HiddenOption HiddenRowOption { set; }
Implements:
Sets a value indicating how the export behavies when paging is enabled.
public PagingExportOption PagingExportOption { set; }
The paging export option.
Get or set pdf export settings class
public ExportSettings.PDF PdfExportSettings { get; set; }
Set RadGridView that would be exported.
public RadGridView RadGridViewToExport { set; }
Implements:
Set the table size scaling. Default value is 1. For example, scale of 1.2f means 20% size increase.
public float Scale { set; }
Set how to export summary rows.
public SummariesOption SummariesExportOption { set; }
Implements:
Set pdf table border thickness. Default value is 0
public int TableBorderThickness { set; }
Methods
Creates PDF file
Events
Occurs when a child view will be exported.
public event ChildViewExportingEventHandler ChildViewExporting
Fires when an html cell object was created and needs to be formatted. Note that pdf export firstly renders as html and this allows to apply custom format to any cell.
public event HTMLCellFormattingEventHandler HTMLCellFormatting