on 12-10-2014 9:13 PM
Hi Guys,
I need help on calling MS Outlook via OLE. It is MS Outlook 2010. The li_rc = oleOutlook.ConnectToNewObject("Outlook.Application") returns -2 which indicates "Class name not found". I also tried li_rc = oleOutlook.ConnectToNewObject("Outlook.Application.14"), the same value returned (-2).
When outlook is installed locally, then the code runs fine. How do we call if it's a virtual application (using APP-V).
Thanks,
Neil
Don't know APP-V but if it simulates a Virtual host, you can
try to use ConnectToNewRemoteObject (hostname,"Outlook.Application")
Regards.
Abdallah.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
App-V isolates the running application in a sandbox. You can't talk to it. You should look at other means (e.g., SMTP) to send email if that's what you were using Outlook for.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Bruce. The requirement is to just display the Outlook Client window with a pre-attached document but not send the email yet. The user will send the email manually as they still have to type more texts on it. And they also want to have a copy of the email on their Sent folder. I'm working for three different clients with different environments. In one client the code is working fine, on the other two, they're having issues.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.