s = "<OBJECT id=WebOffice1 style='LEFT: 0px; WIDTH: 100%; TOP: 0px; HEIGHT: 96%'"
+ "classid=clsid:E77E049B-23FC-4DB8-B756-60529A35FAD5 codebase='WebOffice.ocx#version=6,0,5,0'>"
+ "<PARAM NAME='_ExtentX' VALUE='6350'>"
+ "<PARAM NAME='_ExtentY' VALUE='6350'>"
+ "</OBJECT>";
<SCRIPT LANGUAGE=javascript FOR=WebOffice1 EVENT=NotifyCtrlReady>
/****************************************************
*
* 在装载完Weboffice(执行<object>...</object>)
* 控件后执行 "WebOffice1_NotifyCtrlReady"方法
*
****************************************************/
WebOffice1_NotifyCtrlReady();
</SCRIPT>
<SCRIPT LANGUAGE=javascript FOR=WebOffice1 EVENT=NotifyWordEvent(eventname)>
<!--
WebOffice1_NotifyWordEvent(eventname);
//-->
</SCRIPT>
<SCRIPT LANGUAGE=javascript>
/****************************************************
*
* 控件初始化WebOffice方法
*
****************************************************/
function WebOffice1_NotifyCtrlReady() {
//document.all.WebOffice1.SetToolBarButton2("Menu Bar",1,8);
//document.all.WebOffice1.SetToolBarButton2("Standard",1,8);
document.all.WebOffice1.OptionFlag |= 128;
//document.all.WebOffice1.HideMenuArea("","","","");
//init();
var path=$("#filePath").val();
var type=$("#fileType").val();
//alert(type+"====="+path);
//document.all.WebOffice1.LoadOriginalFile(path,type);
//document.all.WebOffice1.LoadOriginalFile("D://1.xlsx","xlsx");
//document.all.WebOffice1.LoadOriginalFile("D://test.doc","doc");
//document.all.WebOffice1.Open("D://1.xls");
//document.all.WebOffice1.Open("D://test.doc");
}