RecoverWorkbookFromChartCache

Propriété ISpreadsheetOptions.RecoverWorkbookFromChartCache

Si la source de données pour le graphique est un fichier de travail externe et qu’il n’est pas disponible, il sera récupéré à partir du cache du graphique.

public bool RecoverWorkbookFromChartCache { get; set; }

Exceptions

exceptioncondition
InvalidOperationExceptionLancé lorsque le fichier de travail externe n’est pas disponible et que la valeur de la propriété RecoverWorkbookFromChartCache est false.

Exemples

Exemple:

[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;
}

Voir Aussi