Salva file ODS nelle specifiche ODF 1.1 e 1.2

Contents
[ ]

Il codice di esempio seguente crea un oggetto workbook, aggiunge un valore alla cella A1 sul primo foglio di lavoro e quindi salva il file ODS nelle specifiche ODF 1.1 e 1.2. Per impostazione predefinita, il file ODS viene salvato nella specifica ODF 1.2.

from aspose.cells import OdsSaveOptions, 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(".")
# Create workbook
workbook = Workbook()
# Access first worksheet
worksheet = workbook.worksheets[0]
# Put some value in cell A1
cell = worksheet.cells.get("A1")
cell.put_value("Welcome to Aspose!")
# Save ODS in ODF 1.2 version which is default
options = OdsSaveOptions()
workbook.save(dataDir + "ODF1.2_out.ods", options)
# Save ODS in ODF 1.1 version
options.is_strict_schema11 = True
workbook.save(dataDir + "ODF1.1_out.ods", options)