When I use AccpacCOMAPI in ACCPAC 5.3, the AccpacSession.Init method cause an Exception, the error message is "1.2796.37"
The Code:
Public session As AccpacCOMAPI.AccpacSession
Public Sub InitSession(ByVal adminpassword As String, ByVal company As String)
session = New AccpacCOMAPI.AccpacSession
session.Init("", "AS", "AS3001", "53A") 'Exception here
session.Open("ADMIN", adminpassword, company, Date.Now, 0, "")
End Sub
How can i deal it?
The Code:
Public session As AccpacCOMAPI.AccpacSession
Public Sub InitSession(ByVal adminpassword As String, ByVal company As String)
session = New AccpacCOMAPI.AccpacSession
session.Init("", "AS", "AS3001", "53A") 'Exception here
session.Open("ADMIN", adminpassword, company, Date.Now, 0, "")
End Sub
How can i deal it?