Yuriy Zanichkovskyy
Yuriy Zanichkovskyy

Reputation: 1699

Is Interop.Outlook multithreaded?

I need to use Outlook Interop objects for generating .MSG files from a web interface. That's why they will be accessed simultaneously by different threads. Is it multithreaded?

And another question: Does Outlook need to be initialized (e.g. account set) before using Outlook.Application on a server?

Upvotes: 1

Views: 890

Answers (2)

Ian
Ian

Reputation: 34509

The simple answer to your question is No.

Don't go down the automation route, Office applications are not designed to be used within a non-user interactive environment or to be ran on a server. Microsoft have posted quite a long knowledge base article on this detailing problems from security, scalability etc.

Previously this hasn't been a problem and people have gotten away with it, just ignoring the advice. However you'll find that the newer operating systems (vista/server 2k8/win7) and new versions of Office simply don't work anymore. I highly recommend not going down that route.

Upvotes: 4

Otávio Décio
Otávio Décio

Reputation: 74290

As far as I know none of the Office API's were designed to work on the server side, only at the client side.

Upvotes: 3

Related Questions