Follow @RoyOsherove on Twitter

Late bound wrapper to MS Word object

Here is a simple wrapper object that shows you how to late bind to Microsoft Word's spell checker from .net.

Use it like this:

MSWord word = new MSWord();
assert( word.CheckSpelling("antidisestablishmentarianism") );

Late binding from .net in C# to COM is not very straightforward, or documented....

Posted by nick at December 2, 2002 11:03 PM

Looking at the wrapper code, you gotta wonder why doing LateBound COM manipulation is so darn clumsy and wordy. it looks like it could be much more elegant....

Cool IDE Shortcut

ASP.NET Utilities