tags:

views:

299

answers:

0

Hello,

I created a Microsoft Word Add-In that puts the text of the current document in a string using this line:

string text = Globals.ThisAddIn.Application.ActiveDocument.Content.Text;

now I'm trying to put inside the string, the HTML formatted text of the document, just as if I would save the document as an HTML file and read the files content to the string.

I was hoping there's a better way to do it that doesn't involve saving files to the file system.

Thanks in advance,

Jacob