Data extraction to MSWord in ASP.Net C#

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,

To make it short, how do we do the data extraction to MSWord using ASP.Net
C#?
Any help will be appreciated.

Jason
 
Jason,
To make it short, how do we do the data extraction to MSWord
using ASP.Net C#?

A short answer to a short question. I see two options here:

1. Install Word on the server, and control it using some form of automation
to create the documents you need.

2. Create the Word file directly and send it to the browser. This would
require you to either find out the file format Word uses, or buy a
third-party component to do the same.

Of these two, option 2 is way better, though you might be able to get option
1 working, if your requirements are very light and you have only a handful
of users.

Then again, Word supports many file formats nowadays -- you can even feed
HTML into it. Also, PDF files are very capable of displaying text and
graphics, and there are many ASP.NET aware components to create them. On the
downside, they are not (easily) editable.

A final note: the next version of Word will use XML as the default file
format. This could make your life a lot easier.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
(e-mail address removed)
http://www.saunalahti.fi/janij/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top