Class GridPdfExport
Helper for grid pdf export
Inheritance
Inherited Members
Namespace: Syncfusion.EJ2.GridExport
Assembly: Syncfusion.EJ2.GridExport.dll
Syntax
public class GridPdfExport
  Constructors
GridPdfExport()
Declaration
public GridPdfExport()
  Properties
AutoFormat
Gets or sets the AutoFormat of the file.
Declaration
public AutoFormat AutoFormat { get; set; }
  Property Value
| Type | Description | 
|---|---|
| AutoFormat | The AutoFormat of the file.  | 
      
BeginCellLayout
Gets or sets the pdf grid BeginCellLayout Event Handler for grid.
Declaration
public PdfGridBeginCellLayoutEventHandler BeginCellLayout { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Syncfusion.Pdf.Grid.PdfGridBeginCellLayoutEventHandler | BeginCellLayout in file.  | 
      
CheckRTLText
Gets or sets the RTL check for RTL languages.
Declaration
public bool CheckRTLText { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | CheckRTL boolean value  | 
      
DataSource
Gets or sets the datasource of the grid.
Declaration
public IEnumerable DataSource { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Collections.IEnumerable | The Datasource of the grid.  | 
      
Document
Gets or sets the name of the file.
Declaration
public object Document { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Object | The name of the file.  | 
      
EmptyText
Gets or sets the Empty record text of the file.
Declaration
public string EmptyText { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The name of the file.  | 
      
ExportType
Gets or sets the name of the file.
Declaration
public ExportType ExportType { get; set; }
  Property Value
| Type | Description | 
|---|---|
| ExportType | The name of the file.  | 
      
FileName
Gets or sets the name of the file.
Declaration
public string FileName { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The name of the file.  | 
      
FilePath
Gets or sets the File Path for saving file.
Declaration
public string FilePath { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The File Path for saving file in local.  | 
      
FontWeight
Gets or sets the FontWeight.
Declaration
public FontWeight FontWeight { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Syncfusion.EJ2.GridExport.FontWeight | FontWeight.  | 
      
HeaderText
Gets or sets the Header Text for multiple export.
Declaration
public string HeaderText { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | HeaderText for multiple export.  | 
      
IncludeChildGrid
Gets or sets the IncludeChildGrid to either included/exclude the child Grid.
Declaration
public bool IncludeChildGrid { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | true/false  | 
      
IncludeDetailRow
Declaration
public bool IncludeDetailRow { get; set; }
  Property Value
| Type | 
|---|
| System.Boolean | 
IsAutoFit
Gets or sets the IsAutoFit for grid.
Declaration
public bool IsAutoFit { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | IsAutoFit in file.  | 
      
IsHideColumnIncude
Gets or sets the IsHideColumnInclude for grid.
Declaration
public bool IsHideColumnIncude { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | IsHideColumnInclude in file.  | 
      
IsSummaryRow
Gets or sets the IsSummaryRow included in the file.
Declaration
public bool IsSummaryRow { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | IsSummaryRow in file.  | 
      
PdfDocument
Declaration
public PdfDocument PdfDocument { get; set; }
  Property Value
| Type | 
|---|
| Syncfusion.Pdf.PdfDocument | 
PdfVersion
Gets or sets the Pdf version.
Declaration
public PdfVersion PdfVersion { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Syncfusion.Pdf.PdfVersion | The Pdf version.  | 
      
TargetPage
Declaration
public PdfPage TargetPage { get; set; }
  Property Value
| Type | 
|---|
| Syncfusion.Pdf.PdfPage | 
Theme
Gets or sets the Theme of the file.
Declaration
public string Theme { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The Theme of the file.  | 
      
Unicode
Declaration
public bool Unicode { get; set; }
  Property Value
| Type | 
|---|
| System.Boolean | 
Methods
CopyBorders(GridTableCellType, PdfGridCell)
Copies the borders.
Declaration
protected void CopyBorders(GridTableCellType style, PdfGridCell cell)
  Parameters
| Type | Name | Description | 
|---|---|---|
| GridTableCellType | style | The style.  | 
      
| Syncfusion.Pdf.Grid.PdfGridCell | cell | The cell  | 
      
CopyStyles(GridTableCellType, PdfGridCell)
Declaration
protected void CopyStyles(GridTableCellType style, PdfGridCell cell)
  Parameters
| Type | Name | Description | 
|---|---|---|
| GridTableCellType | style | |
| Syncfusion.Pdf.Grid.PdfGridCell | cell | 
ExportCaptionRow(String, PdfGridRow)
Exports the record row.
Declaration
protected void ExportCaptionRow(string value, PdfGridRow row)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | value | The value.  | 
      
| Syncfusion.Pdf.Grid.PdfGridRow | row | 
ExportRecordRow(String, PdfGridRow)
Exports the record row.
Declaration
protected void ExportRecordRow(string value, PdfGridRow row)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | value | The value.  | 
      
| Syncfusion.Pdf.Grid.PdfGridRow | row | 
PdfExport<T>(Grid, IEnumerable, PdfExportProperties)
Declaration
public ActionResult PdfExport<T>(Grid GridModel, IEnumerable result, PdfExportProperties CustomPdfProperties = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Grid | GridModel | |
| System.Collections.IEnumerable | result | |
| PdfExportProperties | CustomPdfProperties | 
Returns
| Type | 
|---|
| System.Web.Mvc.ActionResult | 
Type Parameters
| Name | 
|---|
| T | 
PdfExport<T>(Grid, IEnumerable, Boolean, PdfExportProperties)
Declaration
public object PdfExport<T>(Grid GridModel, IEnumerable result, bool AsMemoryStream, PdfExportProperties CustomPdfProperties = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Grid | GridModel | |
| System.Collections.IEnumerable | result | |
| System.Boolean | AsMemoryStream | |
| PdfExportProperties | CustomPdfProperties | 
Returns
| Type | 
|---|
| System.Object | 
Type Parameters
| Name | 
|---|
| T | 
SaveLocal(String)
Declaration
public void SaveLocal(string filepath)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | filepath | 
SetFontStyles(PdfGridCell)
Declaration
protected void SetFontStyles(PdfGridCell cell)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Syncfusion.Pdf.Grid.PdfGridCell | cell | 
SetTableOptions(TableOptions, Int32, Int32, PdfGridRow)
Sets the table options.
Declaration
protected void SetTableOptions(TableOptions tableOptions, int Idx, int value, PdfGridRow row)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TableOptions | tableOptions | The table options.  | 
      
| System.Int32 | Idx | The idx.  | 
      
| System.Int32 | value | The value.  | 
      
| Syncfusion.Pdf.Grid.PdfGridRow | row |