This sample demonstrates exporting data from GridDataBoundGrid to a Word document. It also illustrates support for headers and footers.
Below is an image of a GridDataBoundGrid Word Converter.
GridDataBoundGrid Word Converter
Features
Exporting data to a Word document.
Adding headers and footers.
Interactive Features
The dependent assemblies are Syncfusion.DocIO.Base and Syncfusion.GridHelperClasses.Windows.
GridWordConverter converter = new GridWordConverter(true,true);
converter.GridToWord("Sample.doc", gridDataBoundGrid1);
//Header event to create a header that will display on each page
converter.DrawHeader+=new GridWordConverterBase.DrawDocHeaderFooterEventHandler(converter_DrawHeader);
//Footer event to create an footer that will display on each page
converter.DrawFooter+=new GridWordConverterBase.DrawDocHeaderFooterEventHandler(converter_DrawFooter);
Below is a sample image of the exported Word File.
Exported Word File