Microsoft Word Object - Is it Thread Safe?
1.) My first question is, Is the MSWord Object Thread Safe? (We are looking to create a DLL that generates word documents on a server and it could be called n number of times, by any number of different processes)
2.) If the answer to #1 is no (which is my current assumption), does anyone know of any components (COM or .NET) that can create Word and PDF documents that is thread safe?
Re: Microsoft Word Object - Is it Thread Safe?
As far as I can see, every time you create a Word App object through Interop (which may be what you are talking about), there is a new instance created. I say this because I have been able to pack the system process list with instances of WINWORD during debug when the code to clean up the object failed to run. It looks like every instance of an App object is a separate instance of Word. However, initialization is far faster after the first time, so there must be some overlap, perhaps in DLL's.
Re: Microsoft Word Object - Is it Thread Safe?
Negative0, since this sounds like a server app your making you may want to check out MS Visual Studio Tools for Office 2003.
It allows you to create dlls for use with Excel and Word. If Word's not thread safe, it should be when used in VSTO.
Maybe after reading up on it you could get your company to purchase it/