【问题标题】:Aspose : set custom properties to a sheet using aspose jarAspose:使用 aspose jar 将自定义属性设置为工作表
【发布时间】:2020-11-26 13:56:09
【问题描述】:

如何使用 aspose - cells -7 将自定义属性写入工作簿中的工作表

CustomPropertyCollection custom = customProp.getCustomProperties();

这是一个以 sn-p 开头的代码

【问题讨论】:

    标签: java excel worksheet aspose-cells


    【解决方案1】:

    请参阅以下示例代码,使用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 担任支持开发人员/布道者。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-02
      • 1970-01-01
      相关资源
      最近更新 更多