Hainlp
Hainlp

Reputation: 179

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

Upvotes: 0

Views: 2121

Answers (3)

Anders Wendt
Anders Wendt

Reputation: 369

You could try using http://www.aspose.com/categories/.net-components/aspose.words-for-.net/default.aspx either with MailMerge or create the document from scratch.

Upvotes: 0

granaker
granaker

Reputation: 1328

You could create a template word document with content controls as placeholders for dynamic data, and then use the OpenXML SDK to insert data in the content controls.

Upvotes: 0

Flowerking
Flowerking

Reputation: 2581

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.

Upvotes: 2

Related Questions