cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Cannot create ActiveX component error

ptc-4456176
1-Visitor

Cannot create ActiveX component error

Hi,

We are trying to use mathcad components in .NET program.

Mathcad15 is available in our machine and we are using .NET 3.5 to interface with the mathcad application.

while calling the createobject method for Mathcad.Application, the following error is thrown.

"Cannot create ActiveX Component".

We have added the reference for Interop.Mathcad.dll which is available inside C:\Program Files\Mathcad15 folder.

Please help us to resolve this issue.

Thanks in advance.

vense

4 REPLIES 4

Even the sample VB.NET code which is available inside Mathcad folder is throwing the same error. Please let us know the cause of the issue and how to resolve it.

vense

You forgot to mention which version of Windows are you running? Try to register the ActiveX component using the regsvr32.exe utility.

hi,

Thanks for your reply.

We are running in Win XP. Re-Installing the mathcad app alone solved the issue.

We need to print the mathcad (.xmcd) files as PDF (thru the VB.NET application).

We have got PDFCreator component which will be creating the PDF files thru code in VB.net.

But PDFCreator throws the message as "this file is not printable".

Let us know if you have any inputs on the same.

vense

RichardJ
19-Tanzanite
(To:ptc-4456176)

We need to print the mathcad (.xmcd) files as PDF (thru the VB.NET application).

We have got PDFCreator component which will be creating the PDF files thru code in VB.net.

But PDFCreator throws the message as "this file is not printable".

Let's move that discussion to the new thread you started. Discussing it in two places will not be productive.

Announcements

Top Tags