OutlookViewInfo class

OutlookViewInfo class

Represents view information for Outlook Data file.

The OutlookViewInfo type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of OutlookViewInfo.
init Initializes a new OutlookViewInfo instance.

Methods

Method Description
to_string Returns a string that represents the current object. (inherited from ViewInfo)

Properties

Property Description
folders The list of folders contained by the Outlook data file.
file_type The type of the file. (inherited from ViewInfo)
pages The list of pages to view. (inherited from ViewInfo)

Example

from typing import cast
from groupdocs.viewer import Viewer
from groupdocs.viewer.options import ViewInfoOptions
from groupdocs.viewer.results import OutlookViewInfo

def get_outlook_info():
    with Viewer("sample.pst") as viewer:
        info = viewer.get_view_info(ViewInfoOptions.for_html_view())
        outlook_info = cast(OutlookViewInfo, info)

        print("File type:", outlook_info.file_type)
        print("Pages count:", len(outlook_info.pages))
        print("Folders:")
        for folder in outlook_info.folders:
            print(f"  {folder}")

if __name__ == "__main__":
    get_outlook_info()

Guides

Task guides that use OutlookViewInfo:

See Also