mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-10-25 18:11:16 +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 {
|
||||
this.currentWorksheet = this.currentWorkbook.Worksheets(idx);
|
||||
}
|
||||
|
||||
// switch to the worksheet
|
||||
this.currentWorksheet.Activate();
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
|
|
@ -119,7 +123,7 @@ function PowerPoint() {
|
|||
|
||||
console.info("Microsoft Office PowerPoint", this.version);
|
||||
|
||||
this.currentPresentation = null;
|
||||
this.currentPresentation = null;
|
||||
|
||||
this.open = function(filename) {
|
||||
if (typeof filename !== "undefined") {
|
||||
|
|
@ -129,16 +133,16 @@ function PowerPoint() {
|
|||
}
|
||||
if (FILE.fileExists(filename)) {
|
||||
console.info("FOUND", filename);
|
||||
this.application.Presentations.Open(filename);
|
||||
this.currentPresentation = this.application.ActivePresentation;
|
||||
this.application.Presentations.Open(filename);
|
||||
this.currentPresentation = this.application.ActivePresentation;
|
||||
} else {
|
||||
console.warn("NOT FOUND", filename);
|
||||
this.currentPresentation = this.application.Presentations.Add(true);
|
||||
this.currentPresentation = this.application.Presentations.Add(true);
|
||||
}
|
||||
} else {
|
||||
this.currentPresentation = this.application.Presentations.Add(true);
|
||||
}
|
||||
//this.selectPresentation(1);
|
||||
//this.selectPresentation(1);
|
||||
};
|
||||
|
||||
this.selectPresentation = function(idx) {
|
||||
|
|
@ -223,7 +227,7 @@ exports.Excel = Excel;
|
|||
exports.PowerPoint = PowerPoint;
|
||||
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.global = global;
|
||||
exports.require = global.require;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user