By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,919 Members | 1,587 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,919 IT Pros & Developers. It's quick & easy.

Creating a Word document in .NET - convert HTML to Word?

P: n/a
Hi

I'm using Word.ApplicationClass in C# to produce a Word document:

Word.ApplicationClass objWord = new Word.ApplicationClass();
Word.Document objWordDoc = objWord.Documents.Add(ref noValue, ref noValue,
ref noValue, ref noValue);
objWordDoc.Activate();

I then get the data from the database and load it into
objWord.Selection.TypeText().

The problem is my data contains lots of HTML, so when the Word document is
produced, all the HTML tags are printed out.

Is there a way to convert the HTML to Word format??

Many thanks,

Ed

Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.