on 07-15-2010 10:47 AM
由于刚接触SAP B1, 对在.net 程序中用C#访问SAP B1数据库不知道如何连接。 查看了一些文档,我想我可以用Interop.SAPbobsCOM.dll 来操作,但是有一个疑问, 如果我的SAP B1装在远程服务器上,在本地如何使用Interop.SAPbobsCOM.dll 来操作? 本地要安装SAP B1吗?
请大家帮忙,谢谢
本地要安装SAP B1,至少要安装DI API。
谢谢,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
装上了,谢谢。可是我的代码连接远程总是连不上, 下面是我的代码:
Company company = new Company();
company.Server = "192.168.1.131";
company.language = BoSuppLangs.ln_English;
company.UseTrusted = true;
company.CompanyDB = "Develop1";
company.UserName = "manager";
company.Password = "manage";
int i = company.Connect();
i=-111 或者 -125
我在131的机器上用这个用户名和密码登录没问题,不过我没有权限,但是代码是连不上,我这样应该写是没错吧?
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.