RecoverWorkbookFromChartCache
SpreadsheetOptions.RecoverWorkbookFromChartCache-Eigenschaft
Wenn die Datenquelle für das Diagramm eine externe Arbeitsmappe ist und sie nicht verfügbar ist, wird sie aus dem Diagramm-Cache wiederhergestellt.
public bool RecoverWorkbookFromChartCache { get; set; }
Ausnahmen
Ausnahme | Bedingung |
---|---|
InvalidOperationException | Wird ausgelöst, wenn die externe Arbeitsmappe nicht verfügbar ist und der Wert der Eigenschaft RecoverWorkbookFromChartCache false ist. |
Beispiele
Beispiel:
[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;
}
Siehe auch
- Klasse SpreadsheetOptions
- Namespace Aspose.Slides
- Assembly Aspose.Slides