Class GridPdfExport
This class exports the PivotGrid content to PDF document with the applied style.
Inheritance
Namespace: Syncfusion.Windows.Controls.PivotGrid.Converter
Assembly: Syncfusion.PivotGridConverter.Wpf.dll
Syntax
public class GridPdfExport : Object
Constructors
GridPdfExport(PivotGridControl)
Initializes a new instance of the GridPdfExport class.
Declaration
public GridPdfExport(PivotGridControl gridControl)
Parameters
Type | Name | Description |
---|---|---|
PivotGridControl | gridControl | This parameter holds the PivotGrid control object which is utilized for PDF exporting. |
Properties
PivotGridControl
Gets the PivotGrid control to export its content to PDF.
Declaration
public PivotGridControl PivotGridControl { get; }
Property Value
Type |
---|
PivotGridControl |
Methods
Export(String)
Exports the PivotGrid to PDF format with the specified file name.
Declaration
public void Export(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Provides specific file name to the exported PDF document. |
Export(String, PdfDocument)
Exports the PivotGrid to PDF format based on document settings with the specified file name.
Declaration
public void Export(string fileName, PdfDocument pdfDocument)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Provides specific file name to the exported PDF document. |
PdfDocument | pdfDocument | Provides PDF document settings. |
Export(String, PdfDocument, Boolean)
Exports the PivotGrid to PDF format based on document settings with the specified file name.
Declaration
public void Export(string fileName, PdfDocument pdfDocument, bool allowHorizontalOverflow)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Provides specific file name to the exported PDF document. |
PdfDocument | pdfDocument | Provides PDF document settings. |
System.Boolean | allowHorizontalOverflow | Define whether we can allow horizontal overflow. |
Export(String, Boolean)
Exports the PivotGrid to PDF format with the specified file name.
Declaration
public void Export(string fileName, bool ignoreStyles)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Provides specific file name to the exported PDF document. |
System.Boolean | ignoreStyles | Provides whether the cell styles can be ignored from exporting. |
Remarks
When exporting the PivotGrid control with huge amount of rows and columns, Call this method with passing the "ignoreStyles" is true. Then the exporting will be done quickly.