Word.Run

The Word.run batch function must return a context.sync().
Every .then must either be fully synchronous or return a promise.
Word.run(function(context) { batch })
The context is sometimes abbreviated to "ctx"
This executes a batch script that performs actions on the Excel object model.
The advantage of batching requests in Word.run() is that when the promise is resolved, any tracked range objects that were allocated during the execution will be automatically released.


Example


JavaScript Sample

Word.run ( function (context) { 


});



© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext