Commit cf21f45c authored by Leon's avatar Leon

upload

parent 89e38a8e
require("topsin.excelxs");
try {
var book = new Book;
var ok = book.create("test.xlsx");
if (!ok) throw "open xlsx failed.";
var sheet = book.addSheet("test");
var font = book.addFont();
font.setColor("#FF0000");
var format = book.addFormat();
format.setFont(font);
sheet.setCellValue(0, 0, "DIRTY");
sheet.setCellFormat(0, 0, format);
book.save();
book.close();
} catch(e) {
print(e);
}
\ No newline at end of file
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment