Yerleşik Belge Özelliklerini Kullanarak Excel Dosyasının Dilini Belirtin

Olası Kullanım Senaryoları

değiştirebilirsinizDilDosyayı sağ tıklatarak ve ardından seçerek Excel dosyasınınÖzellikler > Ayrıntılarve ardından düzenlemeDiltarla. Lütfen kullanBuiltInDocumentPropertyCollection.LanguageAspose.Cells API’leri kullanarak programlı olarak değiştirmek için özellik.

Yerleşik Belge Özelliklerini Kullanarak Excel Dosyasının Dilini Belirtin

Aşağıdaki örnek kod, bir çalışma kitabı oluşturur ve adlı yerleşik belge özelliğini değiştirir.Dil. Lütfen bkzçıktı excel dosyasıdeğiştirileni gösteren kod ve ekran görüntüsü tarafından oluşturulurDiltarafından alanBuiltInDocumentPropertyCollection.LanguageEmlak.

yapılacaklar:resim_alternatif_metin

Basit kod

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