mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 15:11:04 +00:00
msoffice.js
This commit is contained in:
parent
52888517ee
commit
848bded217
|
@ -159,11 +159,11 @@ function Excel() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getValueByCell = function(row, col) {
|
this.getValueByPosition = function(row, col) {
|
||||||
return this.CurrentWorksheet.Cells(row, col).Value;
|
return this.CurrentWorksheet.Cells(row, col).Value;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setValueByCell = function(row, col, value) {
|
this.setValueByPosition = function(row, col, value) {
|
||||||
return this.CurrentWorksheet.Cells(row, col).Value = value;
|
return this.CurrentWorksheet.Cells(row, col).Value = value;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -185,7 +185,7 @@ exports.Excel = Excel;
|
||||||
exports.PowerPoint = PowerPoint;
|
exports.PowerPoint = PowerPoint;
|
||||||
exports.Word = Word;
|
exports.Word = Word;
|
||||||
|
|
||||||
exports.VERSIONINFO = "Microsoft Office interface (msoffice.js) version 0.1.1";
|
exports.VERSIONINFO = "Microsoft Office interface (msoffice.js) version 0.1.2";
|
||||||
exports.AUTHOR = "abuse@catswords.net";
|
exports.AUTHOR = "abuse@catswords.net";
|
||||||
exports.global = global;
|
exports.global = global;
|
||||||
exports.require = global.require;
|
exports.require = global.require;
|
||||||
|
|
|
@ -5,7 +5,7 @@ function main(args) {
|
||||||
|
|
||||||
excel.open();
|
excel.open();
|
||||||
|
|
||||||
excel.setValueByCell(1, 1, "hello world");
|
excel.getValueByPosition(1, 1, "hello world");
|
||||||
|
|
||||||
excel.close();
|
excel.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user