Speichern Sie die Arbeitsmappe im strikt offenen XML-Tabellenformat

Mögliche Nutzungsszenarien

Aspose.Cells ermöglicht Ihnen das Speichern der Arbeitsmappe inStrikte offene XML-TabelleFormat. Dafür stellt sie die**Workbook.Settings.Compliance**Eigentum. Wenn Sie seinen Wert als festlegen**OoxmlCompliance.ISO_29500_2008_STRICT** dann wird die ausgegebene Excel-Datei gespeichert*Strikte offene XML-Tabelle* Format.

Speichern Sie die Arbeitsmappe im strikt offenen XML-Tabellenformat

Der folgende Beispielcode erstellt eine Arbeitsmappe und legt den Wert von fest**Workbook.Settings.Compliance**Eigentum als**OoxmlCompliance.ISO_29500_2008_STRICT**und speichert es alsExcel-Datei ausgeben. Wenn Sie die Excel-Ausgabedatei in Microsoft Excel öffnen und die*Speichern als…*Dialogfeld, sehen Sie sein Format als*Strikte offene XML-Tabelle*wie in diesem Screenshot gezeigt.

todo: Bild_alt_Text

Beispielcode

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
// Create workbook.
Workbook wb = new Workbook();
// Specify - Strict Open XML Spreadsheet - Format.
wb.getSettings().setCompliance(OoxmlCompliance.ISO_29500_2008_STRICT);
// Add message in cell B4 of first worksheet.
Cell b4 = wb.getWorksheets().get(0).getCells().get("B4");
b4.putValue("This Excel file has Strict Open XML Spreadsheet format.");
// Save to output Excel file.
wb.save("outputSaveWorkbookToStrictOpenXMLSpreadsheetFormat.xlsx", SaveFormat.XLSX);