Aspose.Cells ile Yerleşik Belge Özelliklerini Kullanarak Excel Dosyasının Belge Sürümünü Belirtme

Olası Kullanım Senaryoları

Excel dosyasının Sürüm numarasını değiştirebilirsiniz sağ tıklayarak ve ardından Özellikler > Ayrıntılar seçeneğini belirleyerek ve ardından Sürüm numarası alanını düzenleyerek. Lütfen Aspose.Cells API’larını kullanarak bunu programlı olarak değiştirmek için BuiltInDocumentPropertyCollection.DocumentVersion özelliğini kullanın.

Aspose.Cells kullanarak Excel Dosyasının Belge Sürümünü Belirtme

Aşağıdaki örnek kod, çalışma kitabı oluşturur ve içeren yerleşik belge özelliklerini, Başlık, Yazarlar ve Sürüm numarası‘nı değiştirir. Lütfen kod tarafından oluşturulan çıktı Excel dosyasını inceleyin ve BuiltInDocumentPropertyCollection.DocumentVersion özelliği ile değiştirilen Sürüm numarasını gösteren ekran görüntüsünü görün.

todo:image_alt_text

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