"Can’t not create activeX component"

Hi everyone,

I have a problem as below:

I used Microsoft Visual Basic 2010 to make Macro and I used the following to get the end-force:

objOpenSTAAD2 = CreateObject("OpenSTAAD.Output.1")

When programming I put the reference to file: “Interop.OPENSTAADLib.dll”

The Macro run well for some computers but for some computers specially for Windows 7 there is a massage that:

“Can’t not create activeX component”

Please support us to solve this problem.

Regards,

Thai

Parents
  • Hi,

    I have been facing this issue as well (please look at my reply to Mr. Carlos Aguera) and I have been trying to figure out the solution for quite some time now. Surprisingly, I can now instantiate the OpenSTAAD object from within Visual Studio. However, if you are running the debug mode, chances are that, you'll repeatedly get this exception. Instead, publish the AddIn and try to check if it works.

    Further if you are assigning the workbook name (or) worksheet name to a variable, make sure that the name of the workbook under consideration is assigned before step in to the code. Most cases, if the workbook is not active, then a null will be assigned to the wb variable.

    'VB Comment: Suggestion by Trial and Error NOT by expertise Slight smile

Reply
  • Hi,

    I have been facing this issue as well (please look at my reply to Mr. Carlos Aguera) and I have been trying to figure out the solution for quite some time now. Surprisingly, I can now instantiate the OpenSTAAD object from within Visual Studio. However, if you are running the debug mode, chances are that, you'll repeatedly get this exception. Instead, publish the AddIn and try to check if it works.

    Further if you are assigning the workbook name (or) worksheet name to a variable, make sure that the name of the workbook under consideration is assigned before step in to the code. Most cases, if the workbook is not active, then a null will be assigned to the wb variable.

    'VB Comment: Suggestion by Trial and Error NOT by expertise Slight smile

Children
No Data