Yerleşik Belge Özelliklerini Kullanarak Excel Dosyasının Belge Sürümünü Belirtin

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.

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