摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using SAPFunctionsOCX;using SAPLogonCtrl;u... 阅读全文
posted @ 2009-03-30 15:11 寒天飞雪 阅读(3511) 评论(10) 推荐(0) 编辑
摘要: 上一篇简单写了vb6.0中访问SAP, 本篇用vb.net实现同样的功能,只是把读取出来的内容存放在数据库中,然后利用GridView显示出来。 当然可以直接存入DataTable或DataSet中直接显示出来。以下见代码示例:Imports SystemImports System.Collections.GenericImports System.ComponentModelImports S... 阅读全文
posted @ 2009-03-30 14:52 寒天飞雪 阅读(1161) 评论(0) 推荐(0) 编辑
摘要: 最近在研究vb连接SAP的例子, 终于可以正常登录SAP通过RFC读取SAP中的数据。下面是具体的代码:vb6.0写法:'定义公共变量Public Connect As ObjectPublic Functions As Object'登录SAPPrivate Sub Command1_Click() '创建ocx对象 Set Functions = CreateObject("Sap.Funct... 阅读全文
posted @ 2009-03-30 14:40 寒天飞雪 阅读(1390) 评论(0) 推荐(0) 编辑