get_RecoverWorkbookFromChartCache()

SpreadsheetOptions::get_RecoverWorkbookFromChartCache() method

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

bool Aspose::Slides::SpreadsheetOptions::get_RecoverWorkbookFromChartCache() 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