跳到主要内容

set_dup

  • 批量写入指定范围的单元格

声明

enum ExcelErrorCode set_dup(mixed val, int top, int left, int bottom, int right)

参数

参数名描述
val写入数据
top范围最顶行
left范围最左列
bottom范围最底行
right范围最右列

返回值

返回ExcelErrorCode

使用方式

// 批量设置(1, 1)到(2, 7)范围内单元格的内容为 "test_set_dup"
excel_obj.set_dup("test_set_dup", 1, 1, 2, 7);
excel_obj.save();

返回文档