Aspose.Tasks.Examples.CSharp.WorkingWithProjects.Printing.PrintLargeFiles.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:PrintLargeFiles
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);

            // Read the input Project file
            Project project = new Project(dataDir + "Project2.mpp");
 
            PrintOptions options = new PrintOptions();
            options.Timescale = Timescale.ThirdsOfMonths;
            if (project.GetPageCount(Timescale.ThirdsOfMonths) <= 280)
                project.Print(options);
            // ExEnd:PrintLargeFiles
        }
    }
PrintLargeFiles