Aspose.Tasks.Examples.CSharp.WorkingWithResources.RenderResourceSheetView.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);

            // ExStart:RenderResourceSheetView
            // Create project instance
            Project project1 = new Project(dataDir + "ResourceSheetView.mpp");
            
            // Set the Presentation Format to Resource Sheet
            PresentationFormat format = PresentationFormat.ResourceSheet;

            // Define rendering options
            PdfSaveOptions options = new PdfSaveOptions();
            options.PresentationFormat = format;
            project1.Save(dataDir + "ResourceSheetView_out.pdf", options);
            // ExEnd:RenderResourceSheetView
        }
    }
RenderResourceSheetView