62,620
社区成员
发帖
与我相关
我的任务
分享
package jacobtest;
import com.jacob.com.*;
import com.jacob.activeX.*;
/**
*
* @author a-Li
*/
public class JacobTest {
ActiveXComponent comx=new ActiveXComponent("TEST.TestCtrl.1"); //myCom.com
Dispatch ob = (Dispatch) comx.getObject();
public void initTest(){
Variant v = Dispatch.call(ob, "TestAPI",new String());
System.out.println(v.toString());
}
public static void main(String[] args){
JacobTest jt = new JacobTest();
jt.initTest();
}
}