Pergunta

I am working with MS Word 2007 in VB.NET using the PIAs.

Specifically I am doing some processing on multiple Word.Document objects in memory which are part of the same Word.Application object. Can I process each Word.Document in a separate thread or does Word automation require a single thread?

Thanks,

Jacob

Foi útil?

Solução

The Interlocked Class of Multithreaded Programming with Visual Basic .NET lets you you safely increment, decrement, exchange, and compare values from any thread. See also Writing Code in Office Solutions and How to: Target Office Applications Through Primary Interop Assemblies.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top