ProjectManagementViewInfo class

ProjectManagementViewInfo class

Represents view information for MS Project document.

The ProjectManagementViewInfo type exposes the following members:

Constructors

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

Methods

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

Properties

Property Description
end_date The date time when the project is to be completed.
start_date The date time from which the project started.
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 ProjectManagementViewInfo

def get_project_info():
    with Viewer("sample.mpp") as viewer:
        info = viewer.get_view_info(ViewInfoOptions.for_html_view())
        project_info = cast(ProjectManagementViewInfo, info)

        print("File type:", project_info.file_type)
        print("Pages count:", len(project_info.pages))
        print("Start date:", project_info.start_date)
        print("End date:", project_info.end_date)

if __name__ == "__main__":
    get_project_info()

Guides

Task guides that use ProjectManagementViewInfo:

See Also