将Excel工作簿转换为Ods,Sxc和Fods (OpenOffice / LibreOffice calc)
Contents
[
Hide
]
关于OpenDocument
OpenDocument format (ODF)是一种免费开放的用于电子办公文档的文件格式,最初由Sun开发用于Open Office套件。 OpenDocument Spreadsheet (ODS)是Excel文档的文件格式。 OpenDocument目前是OASIS和ISO标准。
将Ods(OpenOffice / LibreOffice calc)转换为Excel
Aspose.Cells支持加载由OpenOffice / LibreOffice Calc支持的Ods、Sxc和Fods,并将Ods、Sxc和Fods转换为Excel文件。
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
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
//Load your source ods file | |
Workbook workbook = new Workbook("book1.ods"); | |
//Save as xlsx file | |
workbook.Save("ods_out.xlsx"); | |
//Load your source sxc file | |
workbook = new Workbook("book1.sxc"); | |
//Save as xls file | |
workbook.Save("sxc_out.xls"); | |
//Load your source fods file | |
workbook = new Workbook("book1.fods"); | |
//Save as xlsb file | |
workbook.Save("fods_out.xlsb"); |
将Excel转换为Ods(OpenOffice / LibreOffice Calc)
Aspose.Cells支持将Excel文件转换为Ods、Sxc和Fods文件。下面的代码示例显示了如何将模板转换为Ods、Sxc和Fods文件。
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
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
//Load your source workbook | |
Workbook workbook = new Workbook("book1.xlsx"); | |
// Save as ods file | |
workbook.Save("Out.ods"); | |
// Save as sxc file | |
workbook.Save("Out.sxc"); | |
// Save as fods file | |
workbook.Save("Out.fods"); |