View Single Post
  #6  
Old July 20th 07, 06:18 PM posted to microsoft.public.outlook.program_addins
Tom at GSD
external usenet poster
 
Posts: 84
Default HTML Editor Outlook 2007 New message window

Thanks Sue

Will that work even if there is not any text selected? For example if I
wanted to insert a link that would specify an article of the web at a specifc
point in the document - could I do this by just clicking the mouse at a
specific point and then inserting the link at that position in the document.
The add-in that I have designed adds reference links to the document so that
the recipient can access documents that are availble on the web.

"Sue Mosher [MVP-Outlook]" wrote:

You'd edit the document with Word methods. For example, the VBA sample at http://outlookcode.com/codedetail.aspx?id=1571 demonstrates how to obtain the insertion point (Word.Selection) and insert a quick part (replacement for AutoText).

--
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 ...

My mistake - I am getting the word document the debugger got me. Now All I
have to do is figure out how to edit the document. ;-(




"Tom at GSD" wrote:

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 -



Ads