应用dsoFramer.ocx出现the associated COM server does not support ActiveX Document emb

lixianrong890611 2012-05-28 01:13:35
应用dsoFramer.ocx出现the associated COM server does not support ActiveX Document embedding错误.
在线打开xls 文件 无法断开,就报这个错误。但是可以打开word。
...全文
1100 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
lixianrong890611 2012-05-28
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 的回复:]

新装的系统也是win7?
[/Quote]

嗯,是的
dsd999 2012-05-28
  • 打赏
  • 举报
回复
新装的系统也是win7?
lixianrong890611 2012-05-28
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 的回复:]

把打开xls那段代码贴出来。
[/Quote]
应该不是代码问题,我重新装了下系统就不行了,之前用的Win7 系统就可以。
lixianrong890611 2012-05-28
  • 打赏
  • 举报
回复
JS
window.open('ShowExcel/DayReport.aspx?date=' + date + '&type=true', 'report');

DayReport.aspx 页面

<script language="javascript" type="text/javascript">

var dsoFramer = {

of: null,

openDoc: function() {
dsoFramer.of.ShowDialog(1);
},

openWebDoc: function() {
var url = window.prompt("web file:", "http://");
dsoFramer.of.Open(url, true);
},

printDoc: function() {
dsoFramer.of.PrintOut();
},

setMenubar: function(visible) {
dsoFramer.of.Menubar = visible;
},
setToolbars: function(visible) {
dsoFramer.of.Toolbars = visible;
},

save: function(address) {
dsoFramer.of.Save(address);
},

saveToServer: function(addr) {
dsoFramer.of.HttpInit();
dsoFramer.of.HttpAddPostString("date", '<%=Date %>');
dsoFramer.of.HttpAddPostCurrFile("fileName", "rename");
alert(dsoFramer.of.HttpPost(addr));
}
};

function btnSave_click() {
dsoFramer.saveToServer('<%=ApplicationPath %>ProductionDispatch/Uploads/HistoryDayReportUpload.aspx');
}


window.attachEvent("onload", function() {
window.focus();
dsoFramer.of = document.getElementById("oframe");
var addr = "<%=ApplicationPath %>ProductionDispatch/Downloads/DownloadDayReport.aspx?<%=QueryString %>";
if (addr != "")
dsoFramer.of.Open(addr, true);
// dsoFramer.setMenubar(true);
// dsoFramer.setToolbars(true);
window.focus();
})
</script>


<table class="full table" cellpadding="0" cellspacing="0">
<tr>
<td height="20">
<div style="display: none" class="vm">
<input type="button" class="sbutton vm" value="打印" onclick="dsoFramer.printDoc();" />
<input type="button" class="sbutton vm" value="刷新" onclick="location=location" />
<input type="checkbox" onclick="dsoFramer.setMenubar(this.checked)" id="cbShowMenubar"
checked="checked" class="vm" />
<label for="cbShowMenubar" class="vm">
显示菜单栏</label>
<input type="checkbox" onclick="dsoFramer.setToolbars(this.checked)" id="cbShowToolbars"
checked="checked" class="vm" />
<label for="cbShowToolbars" class="vm">
显示工具栏</label>
</div>
<span class="vm">
<%=Date.ToString("yyyy年MM月dd日") %>生产完成情况 </span>
<input type="button" id="btnSave" onclick="btnSave_click()" value="保存日报表" />
</td>
</tr>
<tr>
<td>
<object classid="clsid:00460182-9E5E-11d5-B7C8-B8269041DD57" id="oframe" name="oframe"
class="full" codebase="../../Resources/dsoframer.ocx#Version=2,3,0,1">
<param name="BorderStyle" value="0" />
<param name="TitlebarColor" value="52479" />
<param name="TitlebarTextColor" value="0" />
<param name="Menubar" value="1" />
<param name="Titlebar" value="0" />
<param name="Toolbars" value="0" />
</object>
</td>
</tr>
</table>
dsd999 2012-05-28
  • 打赏
  • 举报
回复
把打开xls那段代码贴出来。
lixianrong890611 2012-05-28
  • 打赏
  • 举报
回复
the associated COM server does not support ActiveX Document embedding相关的服务器不支持文件嵌入
lixianrong890611 2012-05-28
  • 打赏
  • 举报
回复
在线无法打开xls 文件,但是却可以打开word
打开xls文件是,就报下面这错误
the associated COM server does not support ActiveX Document embedding

5,139

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 Office开发/ VBA
社区管理员
  • Office开发/ VBA社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧