// Create project instance System::SharedPtr project1 = System::MakeObject(dataDir + u"ResourceUsageView.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::ResourceUsage); // Save the Project System::String outputFile = u"result_ResourceUsageView_days_out.pdf"; project1->Save(dataDir + outputFile, options); // Set the Tiemscale settings to ThirdsOfMonths and save the Project options->set_Timescale(Aspose::Tasks::Visualization::Timescale::ThirdsOfMonths); outputFile = u"result_ResourceUsageView_thirdsOfMonths_out.pdf"; project1->Save(dataDir + outputFile, options); // Set the Timescale settings to Months and save the Project options->set_Timescale(Aspose::Tasks::Visualization::Timescale::Months); outputFile = u"result_ResourceUsageView_months_out.pdf"; project1->Save(dataDir + outputFile, options);