Search code examples
asp.netexport-to-word

How to export asp.net page to MS Word with header, footer


document table in SQL server database is :

id
title
content
first_name
last_name
department
logo

How can i export to word with template like image below.

word file


Solution

  • You need to use OpenXML SDK to achieve what you are looking for. DocX API - docx.codeplex.com. is a really good and easy alternative to Open XML SDK.