Yerleşik Belge Özelliklerini Kullanarak Excel Dosyasının Dilini Belirtin
Contents
[
Hide
]
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.
Basit kod
This file contains hidden or 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-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); |