const String templatePath = u"../templates/presentation.pptx"; const String outPath = u"../out/presentation-out.pptx"; System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(templatePath); System::SharedPtr<Aspose::Slides::Charts::IChart> chart = System::DynamicCast_noexcept<Aspose::Slides::Charts::IChart>(pres->get_Slides()->idx_get(0)->get_Shapes()->idx_get(0)); System::SharedPtr<Aspose::Slides::Charts::ChartData> chartData = System::DynamicCast<Aspose::Slides::Charts::ChartData>(chart->get_ChartData()); chartData->get_Series()->idx_get(0)->get_DataPoints()->idx_get(0)->get_Value()->get_AsCell()->set_Value(System::ObjectExt::Box<int32_t>(100)); pres->Save(outPath, Aspose::Slides::Export::SaveFormat::Pptx);