开发者

Is Interop.Outlook multithreaded?

开发者 https://www.devze.com 2022-12-18 12:33 出处:网络
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?

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: Do开发者_StackOverflow社区es Outlook need to be initialized (e.g. account set) before using Outlook.Application on a server?


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号