Hi Dilip,
Thank you very much for your help.
Now I try to use Axapta COM Connector in VB Script for AX 4.0:
1. I install Axapta COM Connector
2. Regsvr32 axcom.dll
Then I try to create object from VBScript by:
set objAXA = CreateObject("AxaptaCOMConnector.Axapta")
Then I get error saying: ActiveX component can not create object
'AxaptaCOMConnector.Axapta'
And I check 'component service', there is no component there.
I was able to run VBScript to connect to AX 3.0. Are there steps I miss?
Your help is highly appreciated!
Frank
Post by DilipPost by Frank WongHi,
I was able to instance Axapta com object in VBScript;
But now I try to use Dynamics AX .net business connector, I get problem
dim objAXA
set objAXA = CreateObject("Microsoft.Dynamics.BusinessConnectorNet.Axapta")
Can anyone help me?
Thanks
Hi Frank,
Since this is a .Net assembly and it resides in GAC, you need to
register it inorder to use it from VBScript, Try registering the
assembly using regasm utility found in C:\WINDOWS\Microsoft.NET
\Framework\v2.0.50727. (-> path where .Net framework is installed).
Go to command line and type regasm <path of your Business Connector
dll>
This will create the necessary registry entries for your VBScript to
create the object and you can then go ahead and use this component in
your vb script.
I hope you might be aware that in the Dynamics AX 4.0 installation
setup, we do have an option to install Axapta COM Connector which we
used in 3.0, it's given as backward compatibility. You can use that
for creating instance objects from VBScript.
Hope that helps.
Thanks and Regards,
Dilip
http://daxdilip.blogspot.com