SaveOptionsRenderToSinglePage Property

Gets or sets a value indicating whether a project should be rendered to a single page.

Namespace:  Aspose.Tasks.Saving
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.4
Syntax
public bool RenderToSinglePage { get; set; }

Property Value

Type: Boolean
Examples
Shows how to use RenderToSinglePage property to specify that project should be saved to 1-page PDF.
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");

var options = new PdfSaveOptions();
options.PresentationFormat = PresentationFormat.TaskUsage;
options.Timescale = Timescale.DefinedInView;
options.RenderToSinglePage = true;
options.StartDate = new DateTime(2012, 12, 22);
options.EndDate = new DateTime(2013, 05, 10);

project.Save(OutDir + "WorkWithRenderToSinglePage_out.pdf", options);
See Also