Class ExportPivotGridToPdf
Represents a class that transfers the grid content to PDF document.
Inheritance
Namespace: Syncfusion.UI.Xaml.PivotGridConverter
Assembly: Syncfusion.SfPivotGridConverter.UWP.dll
Syntax
public class ExportPivotGridToPdf : Object
Constructors
ExportPivotGridToPdf(PivotEngine, ExportingGridStyleInfo)
Initializes a new instance of the ExportPivotGridToPdf class.
Declaration
public ExportPivotGridToPdf(PivotEngine pivotData, ExportingGridStyleInfo gridStyleInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| PivotEngine | pivotData | The pivot data. |
| ExportingGridStyleInfo | gridStyleInfo | The grid style information. |
ExportPivotGridToPdf(PivotEngine, ExportingGridStyleInfo, ObservableCollection<PivotGridDataConditionalFormat>)
Initializes a new instance of the ExportPivotGridToPdf class.
Declaration
public ExportPivotGridToPdf(PivotEngine pivotData, ExportingGridStyleInfo gridStyleInfo, ObservableCollection<PivotGridDataConditionalFormat> conditionalFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| PivotEngine | pivotData | The pivot data. |
| ExportingGridStyleInfo | gridStyleInfo | The grid style information. |
| System.Collections.ObjectModel.ObservableCollection<PivotGridDataConditionalFormat> | conditionalFormat | The Conditional format. |
ExportPivotGridToPdf(PivotEngine[], ExportingGridStyleInfo)
Initializes a new instance of the ExportPivotGridToPdf class.
Declaration
public ExportPivotGridToPdf(PivotEngine[] pivotData, ExportingGridStyleInfo gridStyleInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| PivotEngine[] | pivotData | The pivot data. |
| ExportingGridStyleInfo | gridStyleInfo | The grid style information. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Throws exception if the PivotEngine array is null or its length become zero. |
ExportPivotGridToPdf(PivotEngine[], ExportingGridStyleInfo, ObservableCollection<PivotGridDataConditionalFormat>)
Initializes a new instance of the ExportPivotGridToPdf class.
Declaration
public ExportPivotGridToPdf(PivotEngine[] pivotData, ExportingGridStyleInfo gridStyleInfo, ObservableCollection<PivotGridDataConditionalFormat> conditionalFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| PivotEngine[] | pivotData | The pivot data. |
| ExportingGridStyleInfo | gridStyleInfo | The grid style information. |
| System.Collections.ObjectModel.ObservableCollection<PivotGridDataConditionalFormat> | conditionalFormat | The Conditional format. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Throws exception if the PivotEngine array is null or its length become zero. |
ExportPivotGridToPdf(SfPivotGrid, ExportingGridStyleInfo)
Initializes a new instance of the ExportPivotGridToPdf class.
Declaration
public ExportPivotGridToPdf(SfPivotGrid pivotGrid, ExportingGridStyleInfo gridStyleInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| SfPivotGrid | pivotGrid | This parameter holds the SfPivotGrid control object which is utilized for PDF exporting. |
| ExportingGridStyleInfo | gridStyleInfo | The grid style information. |
Remarks
This is applicable only for relational data source.
ExportPivotGridToPdf(SfPivotGrid[], ExportingGridStyleInfo)
Initializes a new instance of the ExportPivotGridToPdf class.
Declaration
public ExportPivotGridToPdf(SfPivotGrid[] pivotGrid, ExportingGridStyleInfo gridStyleInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| SfPivotGrid[] | pivotGrid | This parameter holds the SfPivotGrid control object which is utilized for PDF exporting. |
| ExportingGridStyleInfo | gridStyleInfo | The grid style information. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Throws exception if the SfPivotGrid control is null or its length become zero. |
Methods
add_Exporting(ExportingGridEventHandler)
Declaration
public void add_Exporting(ExportingGridEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| ExportingGridEventHandler | value |
ExportToDocument(String)
Exports the grid to PDF document.
Declaration
public void ExportToDocument(string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | fileName | The file name for exported PDF document. |
remove_Exporting(ExportingGridEventHandler)
Declaration
public void remove_Exporting(ExportingGridEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| ExportingGridEventHandler | value |
Events
Exporting
Occurs while exporting the document.
Declaration
public event ExportingGridEventHandler Exporting
Event Type
| Type |
|---|
| ExportingGridEventHandler |