Skip to end of metadata
Go to start of metadata
Contents Summary

This feature is supported since version 19.1.

The code uses some of the objects defined in Working with Common Operations.

Rendering Outlook Data Files

GroupDocs.Viewer allows rendering the items in Outlook Data Files (OST/PST). OutlookOptions is used to set rendering options for OST and PST formats. The following steps are to be followed when rendering the items in Outlook Data Files.

  • Create ViewerHandler (ViewerHtmlHandler or ViewerImageHandler)
  • Create HtmlOptions or ImageOptions
  • Set Outlook options i.e. HtmlOptions.getOutlookOptions().getMaxItemsInFolder()
  • Call getPages() method

The following code samples show how to render the items in an Outlook Data File by setting a maximum limit.

Rendering as HTML

These settings are available for both, ImageOptions and HtmlOptions.

Rendering as PDF

Working with Email Messages Contained in Outlook Data Files

This feature is supported from version 19.1.

GroupDocs.Viewer also supports getting and rendering email messages contained in Outlook Data Files (OST/PST formats) as attachments. The email messages are listed as Attachments in DocumentInfoContainer object that is returned by getDocumentInfo method of the corresponding ViewerHandler. The following steps are used to access email messages attached to an Outlook Data File.

  • Create ViewerHandler (ViewerHtmlHandler or ViewerImageHandler)
  • Get document's information in DocumentInfoContainer object using getDocumentInfo method
  • Access each attachment from collections return by DocumentInfoContainer.getAttachments() 

The following code samples show how to get and render the email messages contained in Outlook Data Files.

Getting Email Messages

The following code sample shows how to obtain email messages using the getFile method.

Rendering Email Messages

The following code sample shows how to render email messages contained in an Outlook Data File.

These settings are available for both, ImageOptions and HtmlOptions.

Labels
  • No labels