I have a problem where I need to add/insert an HTML link or image at a
specific point in the document in the new message window. In 2003 we simply
got the current mouse position and inserted the HTML through a button click.
Is there a way to do this utilizing the word editor (WORD:_Docment)?
Thanks for your help
"Sue Mosher [MVP-Outlook]" wrote:
HTMLEditor is obsolete in Outlook 2007, because Outlook 2007 does not use IE for rendering HTML messages. You can return the HTML content as a string through the HTMLBody property, though.
When are you calling WordEditor? It won't work in the NewInspector event handler. You'd need to wait until Inspector.Activate fires.
BTW, both these issues are documented in my known problems list at http://outlookcode.com/article.aspx?id=59,
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"Tom at GSD" wrote in message ...
Hello,
I am in the process of upgrading one of our add-ins to Outlook 2007. This
specific add-in made use of the HTML editor which we used to add HTML
elements to the document. I have discovered that the “GetHtmlEditor” method
no longer works and we have to use the Word Editor to edit the document. The
problem is that I try to get the word editor and the method fails. In other
words the following call no longer works.
CComQIPtrMSWord::_Document spDoc = m_pInspector-GetWordEditor();
I want to get the HTML document if possible.
It there a way to edit the HTML document anymore? Does anybody have any
experience with this?
Thanks for your help,
Tom -