Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic oCompany


I need help to do Dynamic oCompany, actually im connect with the information of only one company with this code.

    Public Sub ConnectCompany()

        oCompany = New SAPbobsCOM.Company()

        oCompany.Server = "SERVER_NAME"

        oCompany.DbUserName = "USER_DB"

        oCompany.DbPassword = "DB_PASSWORD"

        oCompany.CompanyDB = "NAME_OF_DB"

        oCompany.UserName = "USER"

        oCompany.Password = "PASSWORD"

        oCompany.LicenseServer = "localhost:30000"

        oCompany.UseTrusted = False

        oCompany.DbServerType = BoDataServerTypes.dst_MSSQL2012

        oCompany.language = BoSuppLangs.ln_English

But i need connect to diferent company, for example my add-on have to run on different company

Former Member
Not what you were looking for? View more on this topic or Ask a question