LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX automation refnum

Hi,
i have vi that read data from Excel. I use ActiveX automation refnum, where in option Select ActiveX Class selected Excel9.olb. The problem is that path to this library is hard defined and if i move my project to another place i need select path to this library again.
Can i set this path programly (not from browser window)?

Thanks, Nadav.
0 Kudos
Message 1 of 2
(2,752 Views)
Nadav,

I'm not sure I totally understand your question as far as what you're talking about "move my project to another place i need select path to this library again". Usually as long as the ActiveX excel9.OLB is registered by the OS properly, even if you move your application, the refnum is still pointing to reference to this OLB path.
I guess if you still want to retrieve the path programatically, you could retrieve that path from the windows registry.There is usually a key that gives the path of the registered library in (e.g excel9.olb)HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{00020813-0000-0000-C000-000000000046}\1.3\0\win32

Regards,

Cyril Bouton
Applications Engineering
National Instruments.
Cyril Bouton
Active LabVIEW Developper
0 Kudos
Message 2 of 2
(2,752 Views)