July 14, 2018
A few days ago I encountered a question on Stack Overflow about using tabs to align content in a Word document. The required result was something like this:

I started looking at the Word JS API documentation and realized there is nothing in that object model for inserting tabs or defining tab stops. Read the rest of this entry »
No Comments » |
Office JS API, OOXML, Web Add-ins, Word object model | Tagged: add-in, object model, office-js, OOXML, Web Add-ins |
Permalink
Posted by WordMeister
March 23, 2018
Since last I wrote about “Web Add-ins” and the Office JavaScript API a lot has happened. Office 2016 with the updated APIs has been released and the APIs are constantly being up-dated. Those with a subscription will receive the updates more regularly than anyone who has installed Office from an msi. Web add-ins for Office 2016 (and later) run not only on the Windows desktop, like VBA, VSTO and other solutions, they also run on Mac, iPad, mobile devices and the on-line versions of the Office applications. Read the rest of this entry »
No Comments » |
Office JS API, Web Add-ins, Word 2016 | Tagged: office-js, Web Add-ins, Word 2016 |
Permalink
Posted by WordMeister
August 13, 2015
Besides writing to a specified place in a document, the other major thing an “App for Word” can do is communicate with Custom XML Parts. Mainly, I suppose the reason this was included in the original APIs is because Word can link a content control to a node in a Custom XML Part. Changing the content of either the content control or the node will mirror that change at the other end of the link. This capability is of interest for “data-mining” documents since it’s a fairly simple task to read a Custom XML Part from a closed Word document by leveraging the Office Open XML. Read the rest of this entry »
1 Comment |
Concept, VBA->JS, Web Add-ins, Word 2013, Word 2016 | Tagged: VBA->JS, Web Add-ins, Word 2013, Word 2016 |
Permalink
Posted by WordMeister
August 10, 2015
Here’s another tool where you can try out JavaScript, on-line: JS Fiddle. The link is to the tutorial page, in the documentation. The actual editor is here.
Microsoft provides a number of resources, besides the documentation on MSDN, for learning about the Office (2013) APIs. Read the rest of this entry »
2 Comments |
Tools, Web Add-ins, Word 2013 | Tagged: Web Add-ins, Word 2013 |
Permalink
Posted by WordMeister
August 4, 2015
In the last four installments, the basics of creating a Web Add-in and reading/inserting information was introduced, using two different data formats: matrix and plain text. When working with Word, especially, formatting can be just as important as text content. For this reason, Word supports more and complexer content types than the other Office applications. This post focuses on using these coercion types in a Web Add-in. Read the rest of this entry »
No Comments » |
Web Add-ins, Word 2013, Word 2016 | Tagged: Web Add-ins, Word 2013, Word 2016 |
Permalink
Posted by WordMeister
July 31, 2015
As you’ve seen from the discussions about JavaScript and creating the “Hello World” Web Add-in sample, working with non-proprietary programming languages, such as JavaScript, does have at least one advantage: You’re not locked into any particular software to write your code. In order to create VBA code you need the VBA editor, running in an Office application. JavaScript, HTML and CSS can be typed anywhere.
On the other hand, an editor with Intellisense and automatic formatting can save wear-and-tear on your fingers and your nerves! So this post will show you how to write Web Add-ins in a free version of Visual Studio. Read the rest of this entry »
No Comments » |
Web Add-ins | Tagged: Web Add-ins |
Permalink
Posted by WordMeister
July 30, 2015
I hope you’re not feeling too intimidated and have been able to create and load the “Hello World” sample…
This post takes a closer look at the JavaScript part of the sample. The discussion is in two parts: First, how JavaScript is linked into the HTML page; then, the JavaScript code with the main focus on the Office JS API. Read the rest of this entry »
3 Comments |
General, Web Add-ins | Tagged: Web Add-ins |
Permalink
Posted by WordMeister
July 28, 2015
My discussion of Web Add-ins will center on Word, since that’s “where I live”. The information on the basics is certainly relevant to other Office applications (Excel and PowerPoint) if the Web Add-in is hosted in a Task Pane – the only kind of Web Add-in Word supports.
So, what all is involved in creating a Web Add-in? Unfortunately, it’s not only JavaScript and the Office JavaScript APIs – that’s just the programming language and object model. At least some knowledge of HTML is required and familiarity with CSS is an advantage. Read the rest of this entry »
2 Comments |
Web Add-ins | Tagged: Web Add-ins |
Permalink
Posted by WordMeister