// Create project instance System::String dataDir = RunExamples::GetDataDir(System::Reflection::MethodBase::GetCurrentMethod(ASPOSE_CURRENT_FUNCTION)->get_DeclaringType().get_FullName()); System::SharedPtr project1 = System::MakeObject(dataDir + u"TaskUsageView.mpp"); // Define the SaveOptions with required TimeScale settings as Days System::SharedPtr options = System::MakeObject(); options->set_Timescale(Aspose::Tasks::Visualization::Timescale::Days); // Set the Presentation format to ResourceUsage options->set_PresentationFormat(Aspose::Tasks::Visualization::PresentationFormat::TaskUsage); // Save the Project System::String outputProject = u"project_TaskUsageView_result_days_out.pdf"; project1->Save(dataDir + outputProject, options); // Set the Tiemscale settings to ThirdsOfMonths options->set_Timescale(Aspose::Tasks::Visualization::Timescale::ThirdsOfMonths); // Save the Project outputProject = u"project_TaskUsageView_result_thirdsOfMonths_out.pdf"; project1->Save(dataDir + outputProject, options); // Set the Timescale settings to Months options->set_Timescale(Aspose::Tasks::Visualization::Timescale::Months); // Save the project outputProject = u"project_TaskUsageView_result_months_out.pdf"; project1->Save(dataDir + outputProject, options);