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, dosyaya sağ tıklayarak ve sonra Özellikler > Ayrıntılar’ı seçerek ve ardından Sürüm numarası alanını düzenleyerek. Lütfen BuiltInDocumentPropertyCollection.DocumentVersion özelliğini kullanarak Aspose.Cells API’ları ile programlı olarak değiştirin.

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

Aşağıdaki örnek kod, başlık, yazarlar ve Sürüm numarasını içeren yerleşik belge özelliklerini oluşturur bir çalışma kitabı ve değiştirir. Lütfen kod ile oluşturulan çıktı Excel dosyasını kontrol edin ve BuiltInDocumentPropertyCollection.DocumentVersion özelliği tarafından 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-.NET
//Create workbook object
Workbook wb = new Workbook();
//Access built-in document property collection
Aspose.Cells.Properties.BuiltInDocumentPropertyCollection bdpc = wb.BuiltInDocumentProperties;
//Set the title
bdpc.Title = "Aspose File Format APIs";
//Set the author
bdpc.Author = "Aspose APIs Developers";
//Set the document version
bdpc.DocumentVersion = "Aspose.Cells Version - 18.3";
//Save the workbook in xlsx format
wb.Save("outputSpecifyDocumentVersionOfExcelFile.xlsx", SaveFormat.Xlsx);