Class GridWordConverter
Implements the functionalities for exporting the grid to word file.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class GridWordConverter : GridWordConverterBase
Remarks
It has support for header and footer.
Examples
This example shows how to export the grid to word document.
GridWordConverter wordConverter = new GridWordConverter();
// Enabling the footer.
wordConverter.ShowFooter = true;
//Enabling the header.
wordConverter.ShowHeader = true;
wordConverter.GridToWord("Sample.docx", this.gridControl1);
Dim wordConverter As GridWordConverter = New GridWordConverter
' Enabling the footer.
wordConverter.ShowFooter = true
'Enabling the header.
wordConverter.ShowHeader = true
wordConverter.GridToWord("Sample.docx", Me.gridControl1)
Constructors
GridWordConverter()
Initializes a new instance of the GridWordConverter class.
Declaration
public GridWordConverter()
GridWordConverter(Boolean, Boolean)
Initializes a new instance of the GridWordConverter class.
Declaration
public GridWordConverter(bool showHeader, bool showFooter)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | showHeader | Indicates if True, converts header. |
System.Boolean | showFooter | Indicates if True, converts footer. |
Methods
GridToWord(String, GridControlBase)
Exports grid contents to a word document.
Declaration
public void GridToWord(string filename, GridControlBase grid)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | Name of the word file. |
GridControlBase | grid | The grid control |