当前位置: 代码迷 >> Office >> soaoffice设立显示比例
  详细解决方案

soaoffice设立显示比例

热度:9231   发布时间:2013-02-26 00:00:00.0
soaoffice设置显示比例

//word?

var doc = document.getElementById("SOAOfficeCtrl").Document;?

? ? ? ? doc.ActiveWindow.View.Zoom.Percentage ?=150;

?

//excel

var doc = document.getElementById("SOAOfficeCtrl").Document;?

doc.ActiveDocument.Application.ActiveWindow.Zoom = 400;

?

?

?

?

参考:

?

//word?

TANGER_OCX_OBJ.ActiveDocument.ActiveWindow.View.Zoom.Percentage = 50;

?

//excel

//激活当前控件

TANGER_OCX_OBJ.Activate(true);

TANGER_OCX_OBJ.ActiveDocument.Application.ActiveWindow.Zoom = 400;