set_RecoverWorkbookFromChartCache()

SpreadsheetOptions::set_RecoverWorkbookFromChartCache(bool) method

If data source for the chart is an external workbook and it’s not available, it will be recovered from the chart cache.

void Aspose::Slides::SpreadsheetOptions::set_RecoverWorkbookFromChartCache(bool value) override

Remarks

Example:

auto loadOptions = MakeObject<LoadOptions>();
loadOptions->set_SpreadsheetOptions(System::MakeObject<SpreadsheetOptions>());
loadOptions->get_SpreadsheetOptions()->set_RecoverWorkbookFromChartCache(true);

auto pres = MakeObject<Presentation>(u"Presentation.pptx", loadOptions);
auto chart = AsCast<Aspose::Slides::Charts::IChart>(pres->get_Slides()->idx_get(0)->get_Shapes()->idx_get(0));
auto recoveredWorkbook = chart->get_ChartData()->get_ChartDataWorkbook();

See Also