The problem was that we had existing MS ACCESS VBA code developed way prior to Accpac 5.0. Some basic code was generated at that time by using macro generated code which was xAPI syntax.
Now that I'm trying to convert this logic into VB .NET and our version of Accpac is higher it is possible...
I though the recording macro gives you xAPI code, which I already have. By browsing comMapi object through my VB .NET program I see that it has different methods than xAPI. FGor example, I use "OpenView" method for a view in xAPI, but there is nothing like this in comAPI.
Does any body know how to deal with views in Accpac comAPI?
I need to create batch, header and detail views in order to insert information in Accpac GL databases.
I did this in xAPi but based on intellesense of VB .NET the properties and methods of comAPI differ from xAPI.
I don't have any...
I am already doing it. I may have confused you since I wanted to include a simple code snipplet by not showing that I have an array of sessions and apparently I missed one. I also have error handling set-up and have captured "Unspecified error" message, which doesn't tell me much.
Below is my...
Assigning a variable to nothing to close it works in VBA, but in .NET it only clears the association of the varible with the object. The object(Accpac session) still exists.
By hte way in my code I process an arrray of sessions, i.e. handle multiple companies in a loop.
In my VB .NET code I use the following code:
Dim glSession As ACCPACXAPILib.IxapiSession
...
glSession = New ACCPACXAPILib.xapiSession
...
glSession(i).Open("ADMIN", "ADMIN", accpacDbName, Now, 0)
I tried to do the following to close the above session:
glSession.Close()
I get...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.