SafeReportItem object

 

SafeReportItem object exposes Outlook.ReportItem object properties and methods blocked by the security patch.

 

The example below outputs the plain text name of each report in the default Inbox folder:

set App = CreateObject("Outlook.Application")
set Folder = Application.Session.GetDefaultFolder(olFolderInbox)
set SafeReportItem = CreateObject("Redemption.SafeReportItem")
for each item in Folder.Items
    if TypeName(item) = "ReportItem" Then
        SafeReportItem.Item = item
        Debug.Print SafeReportItem.Body
        Debug.Print "-----------------"
    End If
next

 


Derived from: SafeItem

The following properties and method are inherited from the SafeItem object:

 

Attachments, Auth, Key, Body, Fields, Item, Recipients, RTFBody, Sender, Version

CopyTo, GetIDsFromNames, Import, SaveAs, Send


Properties


Body

Returns the plain text body.

Note that for the report items, the plain text body is dynamically generated based on the recipient table properties (where the delivery information for each recipient is stored).

String, Read/only.