20230307 质量在线文档编辑修改

This commit is contained in:
2023-03-07 11:24:59 +08:00
parent f42d330b00
commit 1bbab53e2f
22 changed files with 532 additions and 104 deletions
@@ -1,5 +1,6 @@
var ntko;//控件对象
var savecode = "save.aspx";//保存文档程序程序
var fileName = "";
window.onbeforeunload=function(e){
ntkocloseparentpage();
}
@@ -16,8 +17,8 @@ function init(cmd) {
ntko.AddDocTypePlugin(".pdf","PDF.NtkoDocument","4.0.1.0","officecontrol/ntkooledocallx64.cab",51,true);
}
if (cmd != "") {
alert(cmd);
ntko.OpenFromURL(cmd);
fileName = cmd;
}
/*if (cmd == 1)
{
@@ -164,7 +165,7 @@ function erropen(retHTML) {
}
//保存office文档
function saveFileToUrl() {
var fileName ="ntkocreatnew.docx"
/*
if (fileName.length == 0) { alert("请输入文件标题!"); document.all("filetitle").focus(); return false; }//判断文件标题输入域
var result, filedot;
@@ -202,10 +203,11 @@ function saveFileToUrl() {
fileType = "unkownfiletype";
filedot = ".doc";
}*/
retHTML = ntko.saveToURL("save.aspx",//提交到的url地址
"EDITFILE",//文件域的id,类似<input type=file id=upLoadFile 中的id
"savetype=1&fileType=Word.Document", //与控件一起提交的参数,savetype参数为要保存的文件格式office,html,pdf。filetype参数保存文件类型
"aboutus.docx", //上传文件的名称,类似<input type=file 的value
fileName, //上传文件的名称,类似<input type=file 的value
0 //与控件一起提交的表单id,也可以是form的序列号,这里应该是0.
);
/*switch (ntko.StatusCode) {