【发布时间】:2020-11-26 13:56:09
【问题描述】:
如何使用 aspose - cells -7 将自定义属性写入工作簿中的工作表
CustomPropertyCollection custom = customProp.getCustomProperties();
这是一个以 sn-p 开头的代码
【问题讨论】:
标签: java excel worksheet aspose-cells
如何使用 aspose - cells -7 将自定义属性写入工作簿中的工作表
CustomPropertyCollection custom = customProp.getCustomProperties();
这是一个以 sn-p 开头的代码
【问题讨论】:
标签: java excel worksheet aspose-cells
请参阅以下示例代码,使用Aspose.Cells for Java 完成任务供您参考:
例如
示例代码:
// Open an Excel file
Workbook workbook = new Workbook("Book1.xlsx");
// Retrieve a list of all custom document properties of the Excel file
CustomDocumentPropertyCollection customProperties = workbook.getWorksheets().getCustomDocumentProperties();
// Adding a custom document property to the Excel file
DocumentProperty publisher = customProperties.add("Publisher", "Aspose");
// Save the file
workbook.save("out1.xlsx", SaveFormat.XLSX);
PS。我在 Aspose 担任支持开发人员/布道者。
【讨论】: