작업 목록과 바닥 글 사이의 간격을 제거하는 방법

프로젝트 데이터를 다른 형식으로 변환하면 프로젝트의 작업 목록과 바닥 글 사이의 공간으로 이어질 수 있습니다. ReduceFooterGap 속성을 사용하면 작업 목록과 문서 바닥 글 사이의 추가 간격이 제거됩니다.

작업 목록과 문서 바닥 글 사이의 간격 제거

 1// The path to the documents directory.
 2System::String dataDir = RunExamples::GetDataDir(System::Reflection::MethodBase::GetCurrentMethod(ASPOSE_CURRENT_FUNCTION)->get_DeclaringType().get_FullName());
 3    
 4//Read the MPP file.
 5System::SharedPtr<Project> project = System::MakeObject<Project>(dataDir + u"CreateProject2.mpp");
 6    
 7//Use ReduceFooterGap property to reduce the gap between list of tasks and Footer
 8auto imageSaveOptions = [&]{ auto tmp_0 = System::MakeObject<ImageSaveOptions>(Aspose::Tasks::Saving::SaveFileFormat::PNG); tmp_0->set_ReduceFooterGap(true); tmp_0->set_SaveToSeparateFiles(true); tmp_0->set_PageSize(Aspose::Tasks::Visualization::PageSize::A0); tmp_0->set_Timescale(Aspose::Tasks::Visualization::Timescale::Days); return tmp_0; }();
 9project->Save(dataDir + u"ReducingGapBetweenTasksListAndFooter_out.png", System::StaticCast<Aspose::Tasks::Saving::SaveOptions>(imageSaveOptions));
10    
11auto pdfSaveOptions = [&]{ auto tmp_1 = System::MakeObject<PdfSaveOptions>(); tmp_1->set_ReduceFooterGap(true); tmp_1->set_SaveToSeparateFiles(true); tmp_1->set_PageSize(Aspose::Tasks::Visualization::PageSize::A0); tmp_1->set_Timescale(Aspose::Tasks::Visualization::Timescale::Days); return tmp_1; }();
12project->Save(dataDir + u"ReducingGapBetweenTasksListAndFooter_out.pdf", System::StaticCast<Aspose::Tasks::Saving::SaveOptions>(pdfSaveOptions));
13    
14auto htmlSaveOptions = [&]{ auto tmp_2 = System::MakeObject<HtmlSaveOptions>(); tmp_2->set_ReduceFooterGap(false); tmp_2->set_IncludeProjectNameInPageHeader(false); tmp_2->set_IncludeProjectNameInTitle(false); tmp_2->set_PageSize(Aspose::Tasks::Visualization::PageSize::A0); tmp_2->set_Timescale(Aspose::Tasks::Visualization::Timescale::Days); return tmp_2; }();
15project->Save(dataDir + u"ReducingGapBetweenTasksListAndFooter_out.html", htmlSaveOptions);
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.