跳到主要内容

open_from_data

  • 使用缓冲区中的数据创建新文件

声明

object open_from_data(string path, string mode, buffer data)

参数

参数名描述
pathexcel文件的路径
modeexcel文件的打开模式
data缓冲区数据

返回值

excel文件的object

使用方式

// 使用缓冲区buffer中的数据创建新文件
object new_obj = excel.open_from_data("sample/test_create.xlsx", "w", data_buffer);
new_obj.save();

返回文档