Export RadGridView in Docx document using RadWordsProcessing
Environment
Product | Version | Author |
---|---|---|
RadGridView for WinForms | 2024.2.514 | Nadya Todorova |
Description
RadGridView supports exporting its content to Excel, CSV, HTML, and PDF. For more information see Exporting Data. RadGridView doesn't support exporting to a .docx file out of the box. The following example describes how you can achieve such format conversion and export the grid to .docx document.
Solution
Use the GridViewSpreadExport to export the data to xlsx file. Then use the RadWordsProcessing library to import the exported file and then export it to .docx format. Please refer to the following code snippet: