Display tables from a document in a WPF application

I am working on a small application that reads a word document and parses it. The data presented in the document are presented in tabular form. Is there a way to display data (tabular data) in an application ..? If DGV is the only solution for displaying a table, is there a way to bind an Interop table to a Datagrid

+4
source share
2 answers

I don’t know if this will be the best approach, but now this is what I have come to. Google shows that there are many solutions for linking Excel to a DataGridView, but hardly for Word. In fact, Stackoverflow also has many answers for converting Word to Excel. So why not convert Word content to Excel, and then bind Excel content to DGV? This is a circular trip that I know, but something is better than nothing. Here are some links that may help in this regard:

Software conversion from MS word to Excel

Display excel file contents in Datagridview

http://www.dotneter.com/reading-excel-and-binding-to-datagridview-using-microsoft-office-interop-excel

Transfer data from Excel to dataGridView

+2
source

If this is just a display issue, then directly display the Word document in a WPF application. Here is the link for this.

0
source

All Articles