---
title: "Late bound wrapper to MS Word object"
url: "https://osherove.com/blog/2003/2/19/late-bound-wrapper-to-ms-word-object.md"
canonical: "https://osherove.com/blog/2003/2/19/late-bound-wrapper-to-ms-word-object.html"
published: "2003-02-19T18:25:00"
updated: "2003-02-19T18:25:00"
tags: []
author: "Roy Osherove"
description: "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\") );…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Late bound wrapper to MS Word object

By Roy Osherove February 19, 2003

**Historical article** · Originally published February 19, 2003; technical details may be outdated.

[_Here_](http://www.dotnetdog.com/archives/MSWordWrapper.zip) _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](http://www.dotnetdog.com/archives/000002.html) 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....


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
