テーブルをODSに変換
Contents
[
Hide
]
Aspose.Cells for Python via .NETは、テーブルを含むエクセルファイルをODSファイルに変換することをサポートしています。ファイルをODSフォーマットで保存するだけで、機能するテーブルを持つODSファイルが生成されます。
サンプルコード
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 Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# Source directory | |
sourceDir = RunExamples.Get_SourceDirectory() | |
# Output directory | |
outputDir = RunExamples.Get_OutputDirectory() | |
# Open an existing file that contains a table/list object in it | |
wb = Workbook(sourceDir + "SampleTable.xlsx") | |
# Save the file | |
wb.save(outputDir + "ConvertTableToOds_out.ods") |
サンプルコードによって生成された出力ODSファイルが添付されています。