win7 iis7.5 在线编辑office 文档 显示只读,希望编辑后直接保存到服务器,超棘手,求解!
win7 iis7.5 在线编辑office 文档 显示只读,超棘手,求解!
几乎所有读写权限已给,仍然显示只读,安装:office2003
function GetDocObj(Url) {
var openDocObj = null;
try {
// new ActiveXObject("SharePoint.OpenDocuments.3"); //for office 2007
openDocObj = new ActiveXObject("SharePoint.OpenDocuments.3");
return openDocObj;
}
catch (e) {
try {
openDocObj = new ActiveXObject("SharePoint.OpenDocuments.2");
openDocObj.EditDocument(Url);
return openDocObj;
}
catch (e) {
try {
openDocObj = new ActiveXObject("SharePoint.OpenDocuments.1"); // 为了兼容Office XP,创建“SharePoint.OpenDocuments.1”
return openDocObj;
}
catch (e) {
alert("必须安装Office Xp以上版本!(Office XP、 Office 2003...)");
// window.open(Url,"office","left=0,top=0,toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes");
//var myWindow = new ForceWindow();
// myWindow.open(Url);
return null;
}
}
}
}
function Open(Url) {
var Obj = GetDocObj(Url);
Obj.EditDocument(Url);
}
NRCLM
11 years, 11 months ago