BuiltIn ドキュメント プロパティを使用して Excel ファイルの言語を指定する

考えられる使用シナリオ

を変更できます。言語ファイルを右クリックしてから選択することにより、Excelファイルのプロパティ > 詳細を編集し、言語分野。使ってくださいBuiltInDocumentPropertyCollection.Languageプロパティを使用して、Aspose.Cells API を使用してプログラムで変更します。

BuiltIn ドキュメント プロパティを使用して Excel ファイルの言語を指定する

次のサンプル コードは、ワークブックを作成し、その組み込みドキュメント プロパティを変更します。言語.をご覧ください出力エクセルファイルコードによって生成され、変更された言語フィールドBuiltInDocumentPropertyCollection.Language財産。

todo:画像_代替_文章

サンプルコード

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
//Create workbook object.
Workbook wb = new Workbook();
//Access built-in document property collection.
BuiltInDocumentPropertyCollection bdpc = wb.getBuiltInDocumentProperties();
//Set the language of the Excel file.
bdpc.setLanguage("German, French");
//Save the workbook in xlsx format.
wb.save(outDir + "outputSpecifyLanguageOfExcelFileUsingBuiltInDocumentProperties.xlsx", SaveFormat.XLSX);