<% @ page contenttype = "text / html; charset = GB2312" Language = "java"%>
<% @ Page Import = "com.jacob.com. *"%>
<% @ Page Import = "com.jacob.activex. *"%>
<%
System.RunfinalizersoneXIT (TRUE);
ActiveXComponent Mf = New ActiveXComponent ("Makercom.makerext"); / / Find components
Object mycom = mf.getObject (); // Generate an object
String result = dispatch.call (Mycom, "Hello", New Variant ("Li Zongbin");
/ * Method for calling the component, Mycom is the object name of the component, Hello is the function of the component, New Variant ("Li Zongbin") is the parameter variable of the component, if there are multiple, the method is uniform * /
Out.println (Result);
%>