WorkbookDesigner classe
WorkbookDesigner classe
Incapsula l’oggetto che rappresenta un foglio di calcolo del progettista.
Il tipo WorkbookDesigner espone i seguenti membri:
Costruttori
Proprietà
Metodi
Metodo | Descrizione |
---|
set_data_source(self, data_source, cells_data_table) | |
set_data_source(self, variable, data) | Imposta l’associazione dei dati a una variabile. |
process(self, range, is_preserved) | Elabora i marcatori intelligenti e popola i valori della sorgente dati. |
process(self) | Elabora i marcatori intelligenti e popola i valori della sorgente dati. |
process(self, is_preserved) | Elabora i marcatori intelligenti e popola i valori della sorgente dati. |
process(self, sheet_index, is_preserved) | Elabora i marcatori intelligenti e popola i valori della sorgente dati. |
clear_data_source(self) | Cancella tutte le origini dati. |
set_json_data_source(self, variable, data) | |
get_smart_markers(self) | Restituisce una raccolta di marcatori intelligenti in un foglio di calcolo. |
Esempio
from aspose.cells import Workbook, WorkbookDesigner
# Create WorkbookDesigner object.
wd = WorkbookDesigner()
# Open the template file (which contains smart markers).
wd.workbook = Workbook("SmartMarker_Designer.xls")
# Initialize your data from data source
# DataSet ds = new DataSet();
# ...
# Set the datatable as the data source.
# wd.SetDataSource(dt);
# Process the smart markers to fill the data into the worksheets.
wd.process(True)
# Save the excel file.
wd.workbook.save("outSmartMarker_Designer.xls")
Guarda anche