mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-11 09:24:58 +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;
|
||||
};
|
||||
|
||||
this.setValueByCell = function(row, col, value) {
|
||||
this.setValueByPosition = function(row, col, value) {
|
||||
return this.CurrentWorksheet.Cells(row, col).Value = value;
|
||||
};
|
||||
};
|
||||
|
@ -185,7 +185,7 @@ exports.Excel = Excel;
|
|||
exports.PowerPoint = PowerPoint;
|
||||
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.global = global;
|
||||
exports.require = global.require;
|
||||
|
|
|
@ -4,9 +4,9 @@ function main(args) {
|
|||
var excel = new Office.Excel();
|
||||
|
||||
excel.open();
|
||||
|
||||
excel.setValueByCell(1, 1, "hello world");
|
||||
|
||||
|
||||
excel.getValueByPosition(1, 1, "hello world");
|
||||
|
||||
excel.close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user