Hi Guys, I was wondering if anyone can please help me. We have developed a program using VB and C#. We have originally designed it using AccpacCOMAPI in the macro's, but now we want to change it to AccpacxApi.
Trying to create the session seems to be a problem. This is the syntax that I used:
Session = New xapiSession
Session = CreateObject("ACCPAC.xapisession")
Session.Open(Username, Password, Database, DateTime.Now, 0)
I have imported the namespace: Imports ACCPACXAPILib
and declared the variable: Public Session As ACCPACXAPILib.xapiSession
Any help on the above would be greatly appreciated.
Trying to create the session seems to be a problem. This is the syntax that I used:
Session = New xapiSession
Session = CreateObject("ACCPAC.xapisession")
Session.Open(Username, Password, Database, DateTime.Now, 0)
I have imported the namespace: Imports ACCPACXAPILib
and declared the variable: Public Session As ACCPACXAPILib.xapiSession
Any help on the above would be greatly appreciated.