Update msoffice.js (compatibility)

This commit is contained in:
Namhyeon Go 2023-12-11 18:18:25 +09:00 committed by GitHub
parent a000958f99
commit 35eb144ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,14 +180,14 @@ function Excel() {
return new Excel.Range(this.currentWorksheet.Range(range)); return new Excel.Range(this.currentWorksheet.Range(range));
}; };
this.getCell = function(row, col) { this.getCellByPosition = function(row, col) {
return new Excel.Cell(this.currentWorksheet.Cells(row, col)); return new Excel.Cell(this.currentWorksheet.Cells(row, col));
}; };
}; };
Excel.SupportedFileTypes = FileTypes.Excel; Excel.SupportedFileTypes = FileTypes.Excel;
Excel.Range = function(range) { Excel.Range = function(range) {
this.range = range; this.range = range;
this.getCell = function(row, col) { this.getCellByPosition = function(row, col) {
return new Excel.Cell(this.range.Cells(row, col)); return new Excel.Cell(this.range.Cells(row, col));
}; };
}; };
@ -228,7 +228,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.7"; exports.VERSIONINFO = "Microsoft Office interface (msoffice.js) version 0.1.8";
exports.AUTHOR = "abuse@catswords.net"; exports.AUTHOR = "abuse@catswords.net";
exports.global = global; exports.global = global;
exports.require = global.require; exports.require = global.require;