Copy formatted content from a Visual Studio RichTextBox to Word

June 30, 2018

One question I’ve seen fairly regularly is, “How do I copy formatted content from a Visual Studio RichTextBox to a Word document?” The answer, of course, is, “Use the clipboard.” But behind that is another question: How to put the content in the Clipboard?


VBA->JS: A closer look at Script Lab and async

June 25, 2018

My previous post on getting started with Script Lab and the Office JS APIs for Word looked at some similarities between the COM and Word JS API object models, based on the Script Lab Basic API call sample. This time, I’ll highlight the core part of the sample code that differs from working with COM/VBA.