Text format of MeetingItem

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

Text format of MeetingItem
 
Martin Schetat




Posts: 13
Joined: 2009-03-01
Hello,

In the context of an add-in for Outlook 2016, a meeting request is created.

We face a problem in the ItemSend event handler: the inspector of the MeetingItem doesn't make the difference between rich text and unformatted text in the meeting body.

inspector.EditorType is always olEditorWord, even for plain text.
inspector.IsWordMail() always returns true, even for plain text.

As the user can switch the format in the ribbon (HTML/Plain Text/Rich Text), how can we tell the difference in code?

Thank you,

Martin Schetat
Posted 05 Feb, 2018 09:35:11 Top
Andrei Smolin


Add-in Express team


Posts: 14712
Joined: 2006-05-11
Hello Martin,

You need to use the MeetingItem.BodyFormat property.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 05 Feb, 2018 10:06:14 Top
Martin Schetat




Posts: 13
Joined: 2009-03-01
Hello Andrei,

I'm sorry, I can't find MeetingItem.BodyFormat, this property doesn't appear to exist (see also https://msdn.microsoft.com/en-us/vba/outlook-vba/articles/meetingitem-object-outlook).

Thank you,

Martin Schetat
Posted 06 Feb, 2018 07:44:09 Top
Andrei Smolin


Add-in Express team


Posts: 14712
Joined: 2006-05-11
Hello Martin,

Yesterday, I raised an issue regarding the MeetingItem.BodyFormat property missing on that page.

You can see that property in the VBA object browser: start Outlook, press {Alt+F11} to open the VBA IDE, press F2 to open the VBA object Browser.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 06 Feb, 2018 07:49:42 Top
Martin Schetat




Posts: 13
Joined: 2009-03-01
Hello Andrei,

thank you very much. We did the development on a PC with Outlook 2013 and couldn't find the property. On a system with Outlook 2016 on the other hand BodyFormat is available.

Kind regards,

Martin Schetat
Posted 06 Feb, 2018 13:34:51 Top
Andrei Smolin


Add-in Express team


Posts: 14712
Joined: 2006-05-11
Hello Martin,

This property is missing on the Outlook interop; you would need to use late binding.

I've also noticed the same issue with AppointmentItem: this property is missing on the Outlook interop and it is present in Outlook 2016.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 07 Feb, 2018 02:41:43 Top