Cargar archivo de Excel de origen sin gráficos

Cargar hojas de cálculo específicas en un libro de Excel

El siguiente código de muestra carga el archivo de Excel de muestra sin gráficos y lo guarda en formato de PDF de salida.

// 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);