Export Microsoft Access Database to Word Document in ASP.Net

Last Reply 9 months ago By dharmendr

Posted 9 months ago

I want to export all the data in Microsoft Access database table to word with format using vb.net.


Posted 9 months ago

I do not want to save word document, I only want to export database records to word document with format for documentation. Thank you.


Posted 9 months ago

Hi dnnyobi,

Refer below links.

Reading records from Microsoft Access database.

How to connect MS Access DataBase in ASP.Net using VB.Net

Export to word document.

Export DataSet or DataTable to Word Excel PDF and CSV Formats


Posted 9 months ago
Thanks for the effort. I want it exported without table and different fonts and text color.

Posted 9 months ago

Hi dnnyobi,

Based on your requirement dynamically generate html using StringBuilder and then export it to word format.

Refer below link for sample example.

Export Formatted HTML to Word Document in ASP.Net using C# and VB.Net