Remove Gap Between Tasks List and Footer

Conversion of Project data to different formats can lead to space between the project’s tasks list and footer. Using the ReduceFooterGap property will eliminate the extra gap between the tasks’ list and the footer of the document.

 1Project project = new Project("New Project.mpp");
 2
 3// Use ReduceFooterGap property to reduce the gap between list of tasks and Footer
 4ImageSaveOptions imageSaveOptions =
 5    new ImageSaveOptions(SaveFileFormat.PNG) { ReduceFooterGap = true, SaveToSeparateFiles = true, PageSize = PageSize.A0, Timescale = Timescale.Days };
 6project.Save("ReducingGapBetweenTasksListAndFooter_out.png", (SaveOptions)imageSaveOptions);
 7
 8PdfSaveOptions pdfSaveOptions = new PdfSaveOptions { ReduceFooterGap = true, SaveToSeparateFiles = true, PageSize = PageSize.A0, Timescale = Timescale.Days };
 9project.Save("ReducingGapBetweenTasksListAndFooter_out.pdf", (SaveOptions)pdfSaveOptions);
10
11HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions
12{
13    ReduceFooterGap = false,
14    IncludeProjectNameInPageHeader = false,
15    IncludeProjectNameInTitle = false,
16    PageSize = PageSize.A0,
17    Timescale = Timescale.Days
18};
19project.Save("ReducingGapBetweenTasksListAndFooter_out.html", htmlSaveOptions);
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.