menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridWordConverter - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridWordConverter

    Implements the functionalities for exporting the grid to word file.

    Inheritance
    System.Object
    GridWordConverterBase
    GridWordConverter
    Inherited Members
    GridWordConverterBase.DrawFooter
    GridWordConverterBase.DrawHeader
    GridWordConverterBase.DrawHeaderFooter(WordDocument, Boolean, Boolean)
    GridWordConverterBase.OnDrawFooter(DocHeaderFooterEventArgs)
    GridWordConverterBase.OnDrawHeader(DocHeaderFooterEventArgs)
    GridWordConverterBase.ShowFooter
    GridWordConverterBase.ShowHeader
    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

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved