https://api.xlongwei.com/service/excel/create.json
sheet | String | 工作簿名称,默认sheet1 |
title | String[] ⇒ JSON | 标题栏,可选 |
rows | List<String[]> ⇒ JSON | 数据行 |
base64File | boolean | 默认true |
url | excel网址 |
base64 | excel字节转码 |
domain | http://s.xlongwei.com/uploads/temp/ |
path | excel/0a48f9a5-1820-479f-bf53-907120ecc1c5.xls |
https://api.xlongwei.com:8443/service/excel/read
url | String | excel网址 |
base64 | String | 字节编码 |
file | byte[] | excel文件上传 |
sheetNo | String | 可选表格序号 |
sheetName | String | 可选表格名称,*表示读取所有表格 |
headLine | String | 默认0-无标题行,1-首行标题 2-第二行标题 |
size | String | 数据行数,或表格数 |
data | [[row],[row]…] | 表格数据 |
sheetNames | [name,name] | 读取所有表格时,所有表格名 |
表格名 | {size,data:[]} | 表格数据 |
https://api.xlongwei.com/service/excel/column.json
name | String | 列名,例如:“A” |
number | int | 数字,例如:1 |
name | String | 列名,1 ⇒ A,26 ⇒ Z,27 ⇒ AA |
number | int | 数字,A ⇒ 1,Z ⇒ 26,AA ⇒ 27 |
请求参数二选一,响应结果包含两个值。
https://api.xlongwei.com/service/excel/width.json
value | String | 列值,例如:姓名 |
width | int | 768 |
Sheet.setColumnWidth(column, width);