Commit 1106bcba authored by Leon's avatar Leon

upload

parent b1c1bc6c
require("topsin.excelxs");
try {
var book = new Book;
var ok = book.open("test.xlsx");
if (!ok) throw "open xlsx failed.";
var sheet = book.getSheet(0);
var format = book.addFormat();
format.setPatternForegroundColor('#FF0000');
format.setFillPattern('SOLID');
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