日期:2014-05-20  浏览次数:20597 次

jacob如何传参数名?word的Window.GetPoint方法
word的Window.GetPoint方法需要传5个参数:
表达式.GetPoint(ScreenPixelsLeft, ScreenPixelsTop, ScreenPixelsWidth, ScreenPixelsHeight, obj)
前面四个参数是变量名

Dim pLeft As Long
Dim pTop As Long
Dim pWidth As Long
Dim pHeight As Long

ActiveWindow.GetPoint pLeft, pTop, pWidth, pHeight, _
  Selection.Range
MsgBox "Left = " & pLeft & vbLf _
  & "Top = " & pTop & vbLf _
  & "Width = " & pWidth & vbLf _
  & "Height = " & pHeight
这个是office里面的例子。
Java的jacob如何调这个方法?

------解决方案--------------------
把这个方法封装成一个dll,
用jni调用。
------解决方案--------------------
你看过jacob的文档没啊。文档里连怎么调用一个基本方法都没有?