Some Word APIs does not work on IE11 built in one-time purchase Word 2019

kueno 1 Reputation point
2022-06-23T04:56:14.113+00:00

I'm developing a Word add-in and trying to support IE11 built in one-time purchase Word 2019.

I noticed when I run the following code samples, they don't work but with 365 Word 2019 or one-time purchase Word 2019 with Edge, they work.

   JavaScript  
   Word.run(function (context) {  
     var FindTerm = 'some term here';  
     var searchResults = context.document.body.search(FindTerm, { matchWildcards: true });  
     context.load(searchResults, 'text, font'); // Does not work  
   });  



   JavaScript  
   Word.run(function (context) {  
     return context.sync().then(function () {  
       // Some code  
       return context.sync();  
     });  
   });  

I set the version to 1.3 in my manifest file like below.

   xml  
       <Requirements>  
           <Sets>  
               <Set Name="WordApi" MinVersion="1.3"/>  
           </Sets>  
       </Requirements>  
  • context.load()
  • context.sync()

Don't they work on Word 2019 with IE11 or the problem lies somewhere else?

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,532 questions
0 comments No comments
{count} votes