Microsoft® .NET Development for Microsoft Office (Developer Reference)

Category: Programming
Author: Andrew Whitechapel
This Month Stack Overflow 2


by anonymous   2019-07-21

Cleanup code using the Garbage Collector (GC) would look like this:


Usually Word would clean up (with some delay) when all references are properly cleared, but if you want to force the cleanup (still after making sure all references are cleared) would be with the code above.

It looks kinda strange but if you want to know the ins-outs go find the book by Andrew Whitechapel (former Office PM) in Chapter two, from the top of my head.

by Frederick   2019-07-21

You will have to use Office automation for this.

Read this article as a starting point. Follow the links on that page for more information.

You may also want to purchase (any of) these books: