Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AccpacSessionManager vs. AccpacSession confuse

Status
Not open for further replies.

dichetdi

Programmer
Aug 19, 2002
13
US
Hello,

Can somebody explain to me and provide some snippet code on AccpacSessionManager vs. AccpacSession. I am a little bit confuse between the two in converting vba to .net. I know the AccpacSession uses:
Code:
Session.Init("", "XY", "XY0001", "60A")
Session.Open("ADMIN","ADMIN","SAMLTD",System.DateTime.Now,0,"")
to create a session with Accpac. But what does the AccpacSessionManager do? I am trying to create tool to create batches in Accpac but I want the user to run this tool. I want to call the Accpac login window so that they can log in using their own credentials. If they can create batches, then the tool will load. If not, they can't run the tool. I was planning around with the AccpacSessionManager and got the Accpac login window to show once. Right after that I ran the same code no code change but the login window doesn't show up any more..weird.

Thanks.
 
The login did not show again because you were logged in already - kill the session after you are done and the login will show again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top