mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-10-28 11:31:18 +00:00
Enable the worksheet activation on the screen
Enable the worksheet activation on the screen
This commit is contained in:
parent
6e89bda453
commit
0ab35aab7c
|
|
@ -72,6 +72,10 @@ function Excel() {
|
||||||
} else {
|
} else {
|
||||||
this.currentWorksheet = this.currentWorkbook.Worksheets(idx);
|
this.currentWorksheet = this.currentWorkbook.Worksheets(idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// switch to the worksheet
|
||||||
|
this.currentWorksheet.Activate();
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -119,7 +123,7 @@ function PowerPoint() {
|
||||||
|
|
||||||
console.info("Microsoft Office PowerPoint", this.version);
|
console.info("Microsoft Office PowerPoint", this.version);
|
||||||
|
|
||||||
this.currentPresentation = null;
|
this.currentPresentation = null;
|
||||||
|
|
||||||
this.open = function(filename) {
|
this.open = function(filename) {
|
||||||
if (typeof filename !== "undefined") {
|
if (typeof filename !== "undefined") {
|
||||||
|
|
@ -129,16 +133,16 @@ function PowerPoint() {
|
||||||
}
|
}
|
||||||
if (FILE.fileExists(filename)) {
|
if (FILE.fileExists(filename)) {
|
||||||
console.info("FOUND", filename);
|
console.info("FOUND", filename);
|
||||||
this.application.Presentations.Open(filename);
|
this.application.Presentations.Open(filename);
|
||||||
this.currentPresentation = this.application.ActivePresentation;
|
this.currentPresentation = this.application.ActivePresentation;
|
||||||
} else {
|
} else {
|
||||||
console.warn("NOT FOUND", filename);
|
console.warn("NOT FOUND", filename);
|
||||||
this.currentPresentation = this.application.Presentations.Add(true);
|
this.currentPresentation = this.application.Presentations.Add(true);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.currentPresentation = this.application.Presentations.Add(true);
|
this.currentPresentation = this.application.Presentations.Add(true);
|
||||||
}
|
}
|
||||||
//this.selectPresentation(1);
|
//this.selectPresentation(1);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.selectPresentation = function(idx) {
|
this.selectPresentation = function(idx) {
|
||||||
|
|
@ -223,7 +227,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.2.0";
|
exports.VERSIONINFO = "Microsoft Office interface (msoffice.js) version 0.2.1";
|
||||||
exports.AUTHOR = "gnh1201@catswords.re.kr";
|
exports.AUTHOR = "gnh1201@catswords.re.kr";
|
||||||
exports.global = global;
|
exports.global = global;
|
||||||
exports.require = global.require;
|
exports.require = global.require;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user