Cargar archivo de Excel de origen sin gráficos
Contents
[
Hide
]
Aspose.Cells para Python via .NET te permite cargar tu archivo de Excel sin gráficos. Usa la propiedad LoadOptions.load_filter para este propósito.
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.
This file contains hidden or 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
from aspose.cells import LoadDataFilterOptions, LoadFilter, LoadOptions, SaveFormat, Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
# Specify the load options and filter the data | |
options = LoadOptions() | |
# Include everything except charts | |
options.load_filter = LoadFilter(LoadDataFilterOptions.ALL & ~LoadDataFilterOptions.CHART) | |
# Load the workbook with specified load options | |
workbook = Workbook(dataDir + "chart.xlsx", options) | |
# Save the workbook in PDF format | |
workbook.save(dataDir + "ResultWithoutChart.pdf", SaveFormat.PDF) |