当前位置: 代码迷 >> Java相关 >> jacob怎么传参数名?word的Window.GetPoint方法
  详细解决方案

jacob怎么传参数名?word的Window.GetPoint方法

热度:2928   发布时间:2013-02-25 21:48:49.0
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的文档没啊。文档里连怎么调用一个基本方法都没有?
  相关解决方案