Hello everyone,
I am using SAP B-One Studio with MS VS 2010, Take a look at the below code of ConnectToCompany()
oCompany.Server = Application.SBO_Application.Company.ServerName;
//Application.SBO_Application.MessageBox("Connected to" + oCompany.Server);
//oCompany.Server = "MOHSIN-PC";
oCompany.CompanyDB = Application.SBO_Application.Company.DatabaseName;
oCompany.UserName = Application.SBO_Application.Company.UserName; //"manager";
oCompany.Password = "admin";
oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English;
oCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2008;
int a = oCompany.Connect();
In the above code the highlighted line, I want that password would be entered as the "CompanyDB" and "UserName" is entered.
How can I do that as there is no any property of Passwrod in Application.SBO_Application.Company.??
Thanx in advance