Body Format

Add-in Express™ Support Service
That's what is more important than anything else

Body Format
 
Martin Mizzell


Guest


Hi,

I just created a new addin with ADX 3.x and I am using the version nuetral PIA's. The OlBodyFormat enumeration seems to have disappeared. What do i use in its stead?

Martin
Posted 06 Jan, 2007 16:03:28 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Martin.

What versions of MS Office are you planning to support?

P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 08 Jan, 2007 07:38:10 Top
Martin Mizzell


Guest


2000 and above if possible. if not, XP and above.
Posted 08 Jan, 2007 08:36:00 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Martin, the fact is that the Outlook 2000 Object model doesn't have the BodyFormat property. But you can use the EditorType property of the Outlook._Inspector interface to obtain the body format.
For Outlook XP and later you will have to use the late binding and the InvokeMember method of the Type class to call the BodyFormat property of the Outlook._MailItem interface. To get a version of Outlook please use the HostVersion property of the addinmodule.
Posted 08 Jan, 2007 10:06:51 Top
Martin Mizzell


Guest


Sergey,

Can you please make an example for me? The addin is throwing an exception saying that the member was not found.

Martin
Posted 08 Jan, 2007 11:33:16 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Martin, do you run the code in Outlook XP?
Posted 08 Jan, 2007 11:43:56 Top
Martin Mizzell


Guest


Yes. The end users need to at least be able to run XP-2007.
Posted 08 Jan, 2007 13:41:21 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
In this case you need to use PIAs for Outlook XP. The Object Model of Outlook XP contains the 'BodyFormat' property.
Posted 09 Jan, 2007 07:58:51 Top