Yerleşik Belge Özelliklerini Kullanarak Excel Dosyasının Belge Sürümünü Belirtin
Contents
[
Hide
]
Olası Kullanım Senaryoları
değiştirebilirsinizVersiyon numarasıDosyayı sağ tıklatarak ve ardından seçerek Excel dosyasınınÖzellikler > Ayrıntılarve ardından düzenlemeVersiyon numarasıtarla. Lütfen kullanBuiltInDocumentPropertyCollection.DocumentVersionAspose.Cells API’leri kullanarak programlı olarak değiştirmek için özellik.
Yerleşik Belge Özelliklerini Kullanarak Excel Dosyasının Belge Sürümünü Belirtin
Aşağıdaki örnek kod, bir çalışma kitabı oluşturur ve aşağıdakileri içeren yerleşik belge özelliklerini değiştirir:Başlık, Yazarlar veVersiyon numarası. Lütfen bkzçıktı excel dosyasıdeğiştirileni gösteren kod ve ekran görüntüsü tarafından oluşturulurVersiyon numarasıtarafındanBuiltInDocumentPropertyCollection.DocumentVersionEmlak.
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 title | |
bdpc.setTitle("Aspose File Format APIs"); | |
//Set the author | |
bdpc.setAuthor("Aspose APIs Developers"); | |
//Set the document version | |
bdpc.setDocumentVersion("Aspose.Cells Version - 18.3"); | |
//Save the workbook in xlsx format | |
wb.save("outputSpecifyDocumentVersionOfExcelFile.xlsx", SaveFormat.XLSX); |