Commit 7a6e2cec authored by Leon's avatar Leon

upload

parent cf21f45c
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 pic = book.addPicture("E:/1.png");
sheet.setPicture(0, 0, pic);
book.save();
book.close();
} catch(e) {
print(e);
}
\ No newline at end of file
require("topsin.excelxs");
try {
var book = new Book;
var ok = book.create("test.xlsx");
if (!ok) throw "open xlsx failed.";
var sheet1 = book.addSheet("test1");
book.addSheet("test2");
sheet1.setCellValue(0, 0, "test2");
sheet1.addHyperlink("#test2!a1", 0, 0, 0, 0);
book.save();
book.close();
} catch(e) {
print(e);
}
\ No newline at end of file
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