New to Telerik UI for WinForms? Start a free 30-day trial

Definition

Namespace:Telerik.WinControls.UI.Export

Assembly:TelerikData.dll

Syntax:

C#
public class ExportToPDF : IExportGridTo

Inheritance: objectExportToPDF

Implements: IExportGridTo

Constructors

C#
public ExportToPDF(RadGridView gridToExport)
Parameters:gridToExportRadGridView

Properties

Gets or sets the child view export mode.

C#
public ChildViewExportMode ChildViewExportMode { get; set; }
Property Value:

The child view export mode.

Gets or sets the encoding used for the exported file. Default encoding is UTF8.

C#
public Encoding Encoding { get; set; }

Set if child rows should be exported.

C#
public bool ExportHierarchy { set; }

Set to export visual settings e.g. background colors, font, alignment, conditional formatting etc. Default value: false.

C#
public bool ExportVisualSettings { set; }

Set the file extension. Default value is pdf.

C#
public string FileExtension { set; }

Implements: IExportGridTo.FileExtension

Set table to fit to pdf page width

C#
public bool FitToPageWidth { set; }

Set the table Font.

C#
public Font Font { set; }

Set how to export hidden column.

C#
public HiddenOption HiddenColumnOption { set; }

Implements: IExportGridTo.HiddenColumnOption

Set how to export hidden rows.

C#
public HiddenOption HiddenRowOption { set; }

Implements: IExportGridTo.HiddenRowOption

Set pdf page title.

C#
public string PageTitle { set; }

Sets a value indicating how the export behavies when paging is enabled.

C#
public PagingExportOption PagingExportOption { set; }
Property Value:

The paging export option.

Get or set pdf export settings class

C#
public ExportSettings.PDF PdfExportSettings { get; set; }

Set RadGridView that would be exported.

C#
public RadGridView RadGridViewToExport { set; }

Implements: IExportGridTo.RadGridViewToExport

Set the table size scaling. Default value is 1. For example, scale of 1.2f means 20% size increase.

C#
public float Scale { set; }

Set how to export summary rows.

C#
public SummariesOption SummariesExportOption { set; }

Implements: IExportGridTo.SummariesExportOption

Set pdf table border thickness. Default value is 0

C#
public int TableBorderThickness { set; }

Methods

Creates PDF file

C#
public void RunExport(string fileName)
Parameters:fileNamestring

Export file name

Implements: IExportGridTo.RunExport(string)

C#
public void RunExportCall(string fileName)
Parameters:fileNamestring

Events

Occurs when a child view will be exported.

C#
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.

C#
public event HTMLCellFormattingEventHandler HTMLCellFormatting