タスクリストとフッターの間のギャップを削除します
Contents
[
Hide
Show
]プロジェクトデータをさまざまな形式に変換すると、プロジェクトのタスクリストとフッターの間にスペースが発生する可能性があります。 ResideFootergapプロパティを使用すると、タスクのリストとドキュメントのフッターとの間の余分なギャップが排除されます。
タスクリストとドキュメントフッターの間のギャップを排除する
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);