Outlook Interop Exception

后端 未结 10 1399
故里飘歌
故里飘歌 2021-01-25 07:49

Trying to automate Outlook as

Microsoft.Office.Interop.Outlook.Application myApp = new Microsoft.Office.Interop.Outlook.ApplicationClass();    
Microsoft.Office         


        
10条回答
  •  迷失自我
    2021-01-25 08:11

    The exception looks quite obvious, this should work

        var myApp = new Microsoft.Office.Interop.Outlook.Application();
    

    you just can't get a cast exception with that line above.

提交回复
热议问题