Skip to main content
1-Visitor
September 28, 2010
Question

Mathcad Automation with VB

  • September 28, 2010
  • 2 replies
  • 5245 views

Hi,

I am developing a front end screen for my Mathcad inputs using VB .NET and I am sucessfull in sending inputs to mathcad file and getting outputs out of the mathcad file and display them in my front end screen.

My VB program is working fine to run only one mathcad file, but when I tried to extend my VB program to run two Mathcad files (new inputs to the new mathcad file) at the same time I am getting errors in the VB program.

When I am defining the second Mathcad file with input and output variables in the VB program it is giving the following error

" Cannot Create Active X Component"

Can anyone help me how to define the second Mathcad file in the VB program.

Thanks,

Raj

2 replies

19-Tanzanite
September 28, 2010

Are you trying to create a second Mathcad object? You should just use the Mathcad object you created for the first workaheet, and open another worksheet.

Raaj1-VisitorAuthor
1-Visitor
October 29, 2010

Hi Richard,

I tried your way and it worked.

Thanks for the tip.

I have another question.

I am giving inputs in my frontend screen and getting outputs and everything is working fine, but I am planning to add another feature to it, on the menu bar I have a drop down menu (MathCAD file) under that there are two options MathCAD Visible and Not Visible.

If I choose "Visible" and type-in all my inputs and run the program then it should automatically open my mathcad files which are linked to this VB program.

I know this is possible but I am not sure how to do it. Is there anything that you can help with.

Please let me know if this is not clear I can explain you more.

Thanks.

19-Tanzanite
October 29, 2010

You should just ba able to set the Visible property of the Mathcad object. Doesn't that work?

1-Visitor
October 29, 2010

Can you post the worksheet?

Mike