ExcelブックをOds、Sxc、およびFods(OpenOffice / LibreOffice calc)に変換する

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を読み込み、OdsSxcFodsをExcelファイルに変換します。

// 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ファイルに変換することをサポートしています。以下のコード例は、templateをOds、Sxc、Fodsファイルに変換する方法を示しています。

// 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");

高度なトピック