点聚weboffice常用接口

点聚weboffice常用接口

ID:1235962

大小:96.00 KB

页数:26页

时间:2017-11-09

点聚weboffice常用接口_第1页
点聚weboffice常用接口_第2页
点聚weboffice常用接口_第3页
点聚weboffice常用接口_第4页
点聚weboffice常用接口_第5页
资源描述:

《点聚weboffice常用接口》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、点聚weboffice常用接口本文引用自wangfeng_mails《点聚weboffice常用接口》/******************************************************  关闭页面时调用此函数,关闭文件*****************************************************/functionwindow_onunload(){ try{  varwebObj=document.getElementById("WebOffice1"); 

2、 webObj.Close(); }catch(e){ // alert("异常rError:"+e+"rErrorCode:"+e.number+"rErrorDes:"+e.description); }}/******************************************************     新建文档*****************************************************/functionnewDoc(){ try{  var

3、webObj=document.getElementById("WebOffice1");  vardoctype=document.getElementById("doctype").value;  webObj.LoadOriginalFile("",doctype); }catch(e){  alert("异常rError:"+e+"rErrorCode:"+e.number+"rErrorDes:"+e.description); }}/*************************

4、*****************************    显示打印对话框*/***************************************************/functionshowPrintDialog(){ try{  varwebObj=document.getElementById("WebOffice1");  webObj.PrintDoc(1); }catch(e){  alert("异常rError:"+e+"rErrorCode:"+e.number+"

5、rErrorDes:"+e.description); }}/******************************************************     直接打印*****************************************************/functionzhiPrint(){ try{  varwebObj=document.getElementById("WebOffice1");  webObj.PrintDoc(0); }catch(e){  

6、alert("异常rError:"+e+"rErrorCode:"+e.number+"rErrorDes:"+e.description); }}/******************************************************   关闭页面时调用此函数,关闭文件*****************************************************/functionwindow_onunload(){ try{  varwebObj=docume

7、nt.getElementById("WebOffice1");  webObj.Close(); }catch(e){  alert("异常rError:"+e+"rErrorCode:"+e.number+"rErrorDes:"+e.description); }}/******************************************************    解除文档保护*************************************************

8、****/functionUnProtect(){ try{  varwebObj=document.getElementById("WebOffice1");  webObj.ProtectDoc(0,1,document.all.docPwd.value); }catch(e){  alert("异常rError:"+e+"rErrorCode:"+e.n

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。