//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;
本文介绍如何在Word和Excel中调整文档视图的缩放比例,包括使用JavaScript实现的代码示例。
3421

被折叠的 条评论
为什么被折叠?



