Aspose.Tasks.Examples.CSharp.Articles.RenderGanttChartWithBarsNotRolledUp.Run C# (CSharp) Method

Run() public static method

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

            // ExStart:RenderGanttChartWithBarsNotRolledUp
            PdfSaveOptions options = new PdfSaveOptions();
            options.PresentationFormat = PresentationFormat.GanttChart;
            options.FitContent = true;
            options.RollUpGanttBars = false;
            options.DrawNonWorkingTime = false;
            options.PageSize = PageSize.A3;

            string file = Path.Combine(dataDir, fileName);
            string resultFile = Path.Combine(dataDir, "RenderGanttChartWithBarsNotRolledUp_out.pdf");
            Project project = new Project(file);
            project.Save(resultFile, options);
            // ExEnd:RenderGanttChartWithBarsNotRolledUp
        }
    }
RenderGanttChartWithBarsNotRolledUp