Why would I want to duplicate the excellent effort done by Randy Byrne and Ken Slovak in writing books on building Outlook add-ins?
Building an add-in isn't going to change the way RMS works.
Only a form region can show custom fields in the reading pane. Even a form without VBScript can't do that.
"Bruno" <bruno.moret@sgcib.com> wrote in message news:eC7Qj6GVIHA.4196@TK2MSFTNGP04.phx.gbl...
> Too bad your book does not cover the add-ins for Outlook.
>
> Sure a RMS-protected document is conveyed by the email, but when using RMS with the standard Outlook form, Outlook is able to display its content immediately without having to click the attachment. It shows fine also in the Reading Pane.
>
> I use the following code to activate RMS from my VBScript code:
> Item.Permission = 1 'olDoNotForward
> Item.PermissionService = 1 'olWindows
> It works, but the received email sees an RMS document attached, that needs to be opened to be displayed. When using the standard form, the content of the mail shows nicely. Why so? if not because of the custom form? might it be because of the VBScript (the so-called "active content"?) do you thing that if I build an add-in with Visual Studio, the RMS-protected email will display nicely?