我使用下列语句把控件插入word中
ActiveWindow.GetPoint l, t, w, h, Selection.Range
ActiveDocument.Shapes.AddOLEControl ClassType:="LwActiveX.Seal", Left:=PixelsToPoints(l) - 155, Top:=PixelsToPoints(t) - 170, Anchor:=Selection.Range
这样就可以插入到光标位置,可是好像是由于锚的关系或者其他的,当要插入页面的相对底部的时候,就是把页面往下拉,就不能定位到那个地方了,不知道为什么?
ActiveWindow.GetPoint l, t, w, h, Selection.Range
ActiveDocument.Shapes.AddOLEControl ClassType:="LwActiveX.Seal", Left:=PixelsToPoints(l) - 155, Top:=PixelsToPoints(t) - 170, Anchor:=Selection.Range
这样就可以插入到光标位置,可是好像是由于锚的关系或者其他的,当要插入页面的相对底部的时候,就是把页面往下拉,就不能定位到那个地方了,不知道为什么?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货