node-activex
node-activex copied to clipboard
BoundLeft, BoundTop, BoundWidth, BoundHeight all return undefined
Using nodeJs v10.15.3, Winax 1.12. and PowerPoint 2007, I'm trying to get the BoundLeft, BoundWidth, BoundHeight and BoundTop value properties for a TextRange object. They all return "undefined" whatever I try. If I ask for the Text or Length or any other property of the TextRange, I got a valid result. Also the typeof() for these properties returns "undefined" while they are effectively present in the property list. Here is an example of what I do:
var presentation = powerpnt.Presentations.Open("myFileName.pptx", 0, 0, 0);
var slideShapes = presentation.Slides.Item(1).Shapes;
console.log(slideShapes.Item(1).TextFrame.TextRange.Text);
console.log(slideShapes.Item(1).TextFrame.TextRange.BoundLeft);
The "Text" property effectively displays the text of the TextRange but the BoundLeft will return undefined.
Could it be that I do something wrong here?