Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: Problem get outlook instance from ROT

$
0
0
Hi

I get errors if I try to get the outlook instance from ROT.

Error 1: Property "Visible" cannot read. Member not found.
Error 2: MK_E_UNAVAILABLE
object outlookProxy = System.Runtime.InteropServices.Marshal.GetActiveObject("Outlook.Application");
Outlook.Application outlookApplication = new Outlook.Application(null, outlookProxy);
I've read some other posts and articel and get the information that outlook need more time to register in the ROT. If I wait for example two or three minutes everything is working correctly. But this is not good to work with it.

Is a other solution or workaround available to avoid this problem?

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>