public static void Run()
        {
            using (Viewer viewer = new Viewer(TestFiles.SAMPLE_MPP))
            {
                ProjectManagementViewInfo info = viewer.GetViewInfo(
                    ViewInfoOptions.ForHtmlView()) as ProjectManagementViewInfo;

                Console.WriteLine("Document type is: " + info.FileType);
                Console.WriteLine("Pages count: " + info.Pages.Count);
                Console.WriteLine("Project start date: {0}", info.StartDate);
                Console.WriteLine("Project end date: {0}", info.EndDate);
            }

            Console.WriteLine("\nView info retrieved successfully.");
        }
        public static void Run()
        {
            string outputDirectory    = Utils.GetOutputDirectoryPath();
            string pageFilePathFormat = Path.Combine(outputDirectory, "page_{0}.html");

            using (Viewer viewer = new Viewer(TestFiles.SAMPLE_MPP))
            {
                HtmlViewOptions options = HtmlViewOptions.ForEmbeddedResources(pageFilePathFormat);

                ProjectManagementViewInfo viewInfo =
                    viewer.GetViewInfo(ViewInfoOptions.FromHtmlViewOptions(options)) as ProjectManagementViewInfo;

                options.ProjectManagementOptions.StartDate = viewInfo.StartDate;
                options.ProjectManagementOptions.EndDate   = viewInfo.StartDate.AddDays(7);

                viewer.View(options);
            }

            Console.WriteLine($"\nSource document rendered successfully.\nCheck output in {outputDirectory}.");
        }