Charger le fichier Excel source sans graphiques
Contents
[
Hide
]
Aspose.Cells vous permet de charger votre fichier Excel sans graphiques. Veuillez utiliser la propriété LoadOptions.LoadFilter à cette fin.
Charger la feuille de calcul sans graphiques
Le code d’exemple suivant charge le fichier Excel d’exemple sans graphiques et l’enregistre au format PDF de sortie.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | |
// Specify the load options and filter the data | |
LoadOptions options = new LoadOptions(); | |
// Include everything except charts | |
options.LoadFilter = new LoadFilter(LoadDataFilterOptions.All & ~LoadDataFilterOptions.Chart); | |
// Load the workbook with specified load options | |
Workbook workbook = new Workbook(dataDir + "chart.xlsx", options); | |
// Save the workbook in PDF format | |
workbook.Save(dataDir + "ResultWithoutChart.pdf", SaveFormat.Pdf); |