System.Exception: 'Cannot create ActiveX component.' Coreldraw

1.8k Views Asked by At

I'm getting a System.Exception: 'Cannot create ActiveX component.' on the corelApp = CreateObject("CorelDRAW.Application")

I have the proper reference libraries imported and the excel.application line works fine. What would prevent the system from creating a CorelDraw.Application object?

I have explored the problem here Intemittent Cannot create ActiveX component and here ASP.NET Cannot create ActiveX component to no avail. And I have explored the CorelDRAW Macro Programming Guide to find a solution, but according to the guide I am doing everything correctly.

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
0

There are 0 best solutions below