ClassExportToPDF
Definition
Namespace:Telerik.WinControls.UI.Export
Assembly:TelerikData.dll
Syntax:
public class ExportToPDF : IExportGridTo
Inheritance: objectExportToPDF
Implements:
Constructors
ExportToPDF(RadGridView)
Declaration
public ExportToPDF(RadGridView gridToExport)
Parameters
gridToExport
Properties
ChildViewExportMode
Gets or sets the child view export mode.
Declaration
public ChildViewExportMode ChildViewExportMode { get; set; }
Property Value
The child view export mode.
Encoding
Gets or sets the encoding used for the exported file. Default encoding is UTF8.
ExportHierarchy
Set if child rows should be exported.
ExportVisualSettings
Set to export visual settings e.g. background colors, font, alignment, conditional formatting etc. Default value: false.
FileExtension
Set the file extension. Default value is pdf.
FitToPageWidth
Set table to fit to pdf page width
HiddenColumnOption
Set how to export hidden column.
Declaration
public HiddenOption HiddenColumnOption { set; }
Property Value
Implements
HiddenRowOption
Set how to export hidden rows.
Declaration
public HiddenOption HiddenRowOption { set; }
Property Value
Implements
PageTitle
Set pdf page title.
PagingExportOption
Sets a value indicating how the export behavies when paging is enabled.
Declaration
public PagingExportOption PagingExportOption { set; }
Property Value
The paging export option.
PdfExportSettings
Get or set pdf export settings class
Declaration
public ExportSettings.PDF PdfExportSettings { get; set; }
Property Value
RadGridViewToExport
Set RadGridView that would be exported.
Declaration
public RadGridView RadGridViewToExport { set; }
Property Value
Implements
Scale
Set the table size scaling. Default value is 1. For example, scale of 1.2f means 20% size increase.
SummariesExportOption
Set how to export summary rows.
Declaration
public SummariesOption SummariesExportOption { set; }
Property Value
Implements
TableBorderThickness
Set pdf table border thickness. Default value is 0
Methods
RunExport(string)
Creates PDF file
Declaration
public void RunExport(string fileName)
Parameters
fileName
Export file name
Implements
Events
ChildViewExporting
Occurs when a child view will be exported.
Declaration
public event ChildViewExportingEventHandler ChildViewExporting
Event Value
HTMLCellFormatting
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.
Declaration
public event HTMLCellFormattingEventHandler HTMLCellFormatting
Event Value