View Single Post
  #1  
Old April 15th 09, 12:50 AM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook.program_addins
Peter O'Dowd \(MVP\)
external usenet poster
 
Posts: 15
Default Inspector.WordEditor always returns null

I'm writing an Outlook Add-In, using C# in VS 2005. ( not using VSTO) .
The Add-In uses the shim provided my Microsoft for developing add-ins.

Here's a snippet of the code...
Outlook.Inspector oi = MailItem.GetInspector;

Microsoft.Office.Interop.Word.Document doc =
(Microsoft.Office.Interop.Word.Document)oi.WordEdi tor;

I need to position the cursor at a certain location in a part of message
body I populate when the mail item is created, hence why I need access to
the WordEditor

Any help greatly appreciated...
Thanks


--
Peter O'Dowd
Exchange Server MVP
http://www.blade.net.nz



Ads