Skip to Content
0
Former Member
Dec 01, 2008 at 04:42 AM

Connect sapb1 thought internet by using DI

23 Views

Hi all,

I am trying to login sapb1 thought internet by using DI.

my code as below

OCo = New SAPbobsCOM.Company

OCo.Server = ServerIP

OCo.LicenseServer = ServerIP & ":30000"

OCo.UserName = B1Name

OCo.Password = B1Password

OCo.CompanyDB = CheckDBName()

OCo.language = SAPbobsCOM.BoSuppLangs.ln_English ' change to your language

OCo.DbUserName = DBUserID

OCo.DbPassword = DBPassword

OCo.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2005

OCo.Connect()

it keep on return -114 to me. I know it mean no server define but I pretty sure that ip is correct. Any idea for that?

Regards

Wong