2023-03-03 合同打印修改,在线编辑文档控件增加
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IndexOffice.aspx.cs" Inherits="WordEdit.IndexOffice" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta content="IE=10" http-equiv="X-UA-Compatible" />
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
<title>首页 - OFFICE文档控件演示示例</title>
|
||||
<link href="officecontrol/ntkoStyle.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript">
|
||||
var CLOSEVENT = false;
|
||||
var datatochildcmd = "";
|
||||
function getQueryString(name) {
|
||||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||
var r = window.location.search.substr(1).match(reg);
|
||||
if (r != null) return unescape(r[2]);
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
function openhtml(cmd) {
|
||||
//判断插件是否安装
|
||||
datatochildcmd = cmd;
|
||||
var ntkoed = ntkoBrowser.ExtensionInstalled();
|
||||
var ntkoversion = ntkoBrowser.NtkoExtensionVersion();
|
||||
var ntkotext = '欢迎使用NTKO OFFICE文档控件平台版PLUS(2019)'
|
||||
if (ntkoed) {
|
||||
ntkoBrowser.openWindow("EditOffice.aspx?cmd=" + cmd, false);
|
||||
CLOSEVENT = true;
|
||||
|
||||
|
||||
/* if (cmd == 5) {
|
||||
ntkoBrowser.openWindow("EditOffice.aspx?cmd=" + cmd, false, "", "", "", "", ntkotext, 800, 800, true);
|
||||
} else {
|
||||
ntkoBrowser.openWindow("EditOffice.aspx?cmd=" + cmd, false);
|
||||
if (cmd == 3) {
|
||||
CLOSEVENT = true;
|
||||
} else {
|
||||
CLOSEVENT = false;
|
||||
}
|
||||
}*/
|
||||
} else {
|
||||
|
||||
var iTop = ntkoBrowser.NtkoiTop(); //获得窗口的垂直位置;
|
||||
var iLeft = ntkoBrowser.NtkoiLeft(); //获得窗口的水平位置;
|
||||
window.open("exeindex.html", "", "height=200px,width=500px,top=" + iTop + "px,left=" + iLeft +
|
||||
"px,titlebar=no,toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
//在父页面定义的跨浏览器插件应用程序关闭事件响应方法,且方法名不能自定义,必须是ntkoCloseEvent
|
||||
function ntkoCloseEvent() {
|
||||
if (CLOSEVENT) alert("跨浏览器插件应用程序窗口已关闭!");
|
||||
}
|
||||
|
||||
//在父页面固定OnDataParentText方法名来获取子页面传过来的数据
|
||||
function OnData(argv1, argv2) {
|
||||
alert("请注意示例右侧单元格两个信息的变化。");
|
||||
document.getElementById("spDocSize").innerHTML = argv1 + " byte";
|
||||
document.getElementById("spUpdateTime").innerHTML = argv2;
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="cmd=getQueryString('cmd');openhtml(cmd);">
|
||||
<script type="text/javascript" src="officecontrol/ntkobackground.min.js"></script>
|
||||
<div class="divTop">
|
||||
<div class="divTopInner">
|
||||
<div class="divTopInnerCaption">重庆软航科技有限公司</div>
|
||||
<div class="divTopInnerNtko"><a href="http://www.ntko.com" title="点击访问NTKO官网">官网</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user