حدد إصدار المستند لملف Excel باستخدام خصائص المستند المضمنة
Contents
[
Hide
]
سيناريوهات الاستخدام الممكنة
يمكنك تغييررقم الإصدارمن ملف Excel عن طريق النقر بزر الماوس الأيمن فوق الملف ثم تحديدالخصائص> التفاصيلثم قم بتحرير ملفرقم الإصدارمجال. الرجاء استخدامBuiltInDocumentPropertyCollection.DocumentVersionلتغييره برمجيًا باستخدام واجهات برمجة تطبيقات Aspose.Cells.
حدد إصدار المستند لملف Excel باستخدام خصائص المستند المضمنة
نموذج التعليمات البرمجية التالي بإنشاء مصنف وتغيير خصائص المستند المضمنة الخاصة به التي تتضمنلقب, المؤلفون ورقم الإصدار. الرجاء مراجعةإخراج ملف Excelالتي تم إنشاؤها بواسطة الكود ولقطة الشاشة التي تعرض ملفرقم الإصداربواسطةBuiltInDocumentPropertyCollection.DocumentVersionخاصية.
عينة من الرموز
This file contains 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); |