views:

137

answers:

1

I'm trying to add some HTML formatted text to Word using Office Interop. My code looks like this:

Clipboard.SetText(notes, TextDataFormat.Html);
pgCriteria.Range.Paste();

but it's throwing a Command Failed exception. Any idea?

Thank you

A: 

After spending several hours the solutions is to use this excellent class http://blogs.msdn.com/jmstall/pages/sample-code-html-clipboard.aspx

Albert
Great! You can accept your own answer with the checkmark to remove this post from the "unanswered" list.
Otaku