Class GridWordExport
This class exports the PivotGrid content to Word document with the applied style.
Inheritance
Namespace: Syncfusion.Windows.Controls.PivotGrid.Converter
Assembly: Syncfusion.PivotGridConverter.Wpf.dll
Syntax
public class GridWordExport : Object
Constructors
GridWordExport(PivotGridControl)
Initializes a new instance of the GridWordExport class.
Declaration
public GridWordExport(PivotGridControl gridControl)
Parameters
Type | Name | Description |
---|---|---|
PivotGridControl | gridControl | This parameter holds the PivotGrid control object which is utilized for Word exporting. |
Properties
GridControl
Gets the PivotGrid control to export its content to Word.
Declaration
public PivotGridControl GridControl { get; }
Property Value
Type |
---|
PivotGridControl |
Methods
Export(String)
Exports the PivotGrid to Word document 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 Word document. |
Export(String, Boolean)
Exports the PivotGrid to Word document 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 Word 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.