4.1 同步发版内容到天梯
This commit is contained in:
@ -10,6 +10,7 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
var path; //文档地址
|
||||
var fileName;//weboffice文件名
|
||||
|
||||
function getQueryString(name) {
|
||||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||
@ -55,7 +56,7 @@
|
||||
|
||||
<!--AfterPublishAsPDFToURL-->
|
||||
|
||||
<body onload="path=getQueryString('path');init(path);">
|
||||
<body onload="path=getQueryString('path');fileName=getQueryString('fileName');init(path);">
|
||||
|
||||
<script type="text/javascript" for="TANGER_OCX" event="OnDocumentOpened(File, Document)">
|
||||
|
||||
@ -74,7 +75,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="elementPosition">
|
||||
<button type="button" class="btnStyle btnStyle02" onclick="generalProp(3)">另存为</button>
|
||||
<button type="button" class="btnStyle btnStyle02" onclick="generalProp(2)">另存为</button>
|
||||
<button type="button" class="btnStyle btnStyle02" onclick="generalProp(4)">打印</button>
|
||||
<button type="button" class="btnStyle btnStyle02" onclick="closeBTN()">关闭</button>
|
||||
</div>
|
||||
@ -84,8 +85,9 @@
|
||||
window.open('', '_parent', '');
|
||||
window.close();
|
||||
}
|
||||
//调用文档通用属性方法 1-打开 3-另存为 4-打印
|
||||
//调用文档通用属性方法 1-打开 2-保存(另存为) 4-打印
|
||||
function generalProp(param) {
|
||||
TANGER_OCX.WebFileName = fileName + ".doc";//文档默认名称
|
||||
TANGER_OCX.ShowDialog(param)
|
||||
}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user