ODF 1.1 ve 1.2 Özelliklerinde ODS Dosyasını Kaydet
Contents
[
Hide
]
Aspose.Cells for Python via .NET, ODS dosyasını (Açık Belge Tablosu) ODF (Açık Belge Formatı) 1.1 ve 1.2 teknik şartnamelerine göre kaydetmeyi destekler. Aspose.Cells for Python via .NET, ODS dosyalarını kaydetmek için ODF 1.1 spesifikasyonlarının kullanımını belirten özelliğe sahiptir. Bu özelliğin varsayılan değeri false olduğundan, bu ayar yapılmadan kaydedilen ODS dosyası 1.2 spesifikasyonlarını kullanır.
Aşağıdaki örnek kod, bir çalışma kitabı nesnesi oluşturur, ilk çalışsayfaya birkaç değer ekler ve sonra ODF 1.1 ve 1.2 özelliklerinde ODS dosyasını kaydeder. Varsayılan olarak, ODS dosyası ODF 1.2 özelliğinde kaydedilir.
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
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) |