I have developped a client/server application. the server side of this app. is a asp.net webservice that connect to db2 database via a COM build by ACCPAC (the accounting software).
My app. run perfectly untill , for some reason, a build up of dead connection occur.
Since i don't have a quick...
I had a simmilar problem that i solve using two extra line just before de session.close()
System.GC.Collect()
System.GC.WaitForPendingFinalizers()
i guest that you need to force the Garbage collector to complete the destroy of the views...
That works for me , hope this help
I have the CR viewer 9 from .net in my app.
In this app. i can preview, print with print option defined in a config file, or print using the default print dialog. I'm talking about the dialog that ask you wich printer and how many copy...
The thing is that when i force print option like this ...
I have made some simulation test. In taht test i create one Order entry with X time Two detail , on with 2 line of comment the other with 3.
EX:
loop X time
detail.insert
detail.insert
endloop
Here the result :
Running the loop 1 Time : (2 details line)
Xapi : avr of 4.3sec / avg of...
I have tested this the day i have send the firdt post:
Dim mySession As New AccpacCOMAPI.AccpacSession
Dim mySignonManager As New AccpacSignonManager.AccpacSignonMgr
mySession.Init "", "CS", "CS0001", "51A"
mySignonManager.Signon mySession
Dim...
I have clean up my code to optimize th procees time!
but i fear that the most costing is when i manage comments line....
My app is a client server, i load the data and each time a add or modifiy a item(parts) i acces the server side to reprocess each row...
i could skip unmodified detail but...
I found the solution,
In Common service -> tax Service --> Tax Group
Choose the tax group...
Set the Tax Calculation method to 'Calculatetax by detail'
instead of by summary...
for thoose who might have the same problem...
I'm developping and order input form with the xapi...
Everithing seems to be alright except for execution time
but for now my concern is on the tax calculation...
I have some miscalculation with the xapi, so i try to created a order with accpac directly just to be sure the probleme is in my...
Thanks , i found that using .Cancel for DetailView and Comment View is not a good thing...
Everithing seems ok now , except execution time...
Right now i'm trying to make sure i call xapi function only if i need to because it take me 8 sec to save and order entry of 3 detail...
each time i use...
I have been able to Connect in vb6 (not ACCPAC VBA) using the AccpacCOMAPI
using the following code:
'--------------
'--------------
' start
'--------------
'--------------
Dim mySession As New AccpacCOMAPI.AccpacSession
Dim mySignonManager As New AccpacSignonManager.AccpacSignonMgr...
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.