我收到System.Exception:'无法创建ActiveX组件。'在corelApp = CreateObject(" CorelDRAW.Application")
上我已导入正确的参考库,并且excel.application行正常工作。什么会阻止系统创建CorelDraw.Application对象?
我在这里探讨过这个问题Intemittent Cannot create ActiveX component 和这里 ASP.NET Cannot create ActiveX component无济于事。我已经探索了CorelDRAW宏编程指南以找到解决方案,但根据指南我正在做的一切正确。
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim excelApp As Object
excelApp = CreateObject("excel.application")
Dim corelApp As CorelDRAW.Application
corelApp = CreateObject("CorelDRAW.Application")
End Sub
End Class