This sample demonstrates the conversion of Grouping Grid data into a Word document. It also supports headers and footers.
The following is an image of a Word export.
GroupingGridWordConverter converter = new GroupingGridWordConverter(true, true);
converter.GroupingGridToWord("Sample.doc", gridGroupingControl1);
//Header event to create an header, that will display on each page
converter.DrawHeader += new GridWordConverterBase.DrawDocHeaderFooterEventHandler(converter_DrawHeader);
//Footer event to create a footer, that will display on each page
converter.DrawFooter += new GridWordConverterBase.DrawDocHeaderFooterEventHandler(converter_DrawFooter);
The following is an image of the exported file.