RecoverWorkbookFromChartCache
SpreadsheetOptions.RecoverWorkbookFromChartCache property
如果图表的数据源是外部工作簿且不可用,则会从图表缓存中恢复。
public bool RecoverWorkbookFromChartCache { get; set; }
例外
例外 | (健康)状况 |
---|---|
InvalidOperationException | 当外部工作簿不可用且 RecoverWorkbookFromChartCache 属性值为 false 时抛出。 |
例子
示例:
[C#]
LoadOptions loadOptions = new LoadOptions
{
SpreadsheetOptions = new SpreadsheetOptions
{
RecoverWorkbookFromChartCache = true
}
};
using (Presentation pres = new Presentation("Presentation.pptx", loadOptions))
{
IChart chart = pres.Slides[0].Shapes[0] as IChart;
IChartDataWorkbook recoveredWorkbook = chart.ChartData.ChartDataWorkbook;
}
也可以看看
- class SpreadsheetOptions
- 命名空间 Aspose.Slides
- 部件 Aspose.Slides