问题描述
我的 MVC 应用程序使用推送模型和 CR 查看器进行报告.在查看器中显示报告时效果很好,但是打印/导出按钮会给出 javascript 错误此操作不支持对象".我正在使用 VS 2008 和 MVC.这发生在我的开发环境中.有什么想法吗?
My MVC app uses the push model and the CR viewer for reporting. All works great in displaying the report in the viewer however the print/export buttons give the javascript error 'Object not supported by this action'. I am using VS 2008 and MVC. This happens in my dev environment. Any ideas?
推荐答案
这个问题的答案太愚蠢了,令人尴尬 - 我的弹出窗口阻止程序导致了这个错误.但是,我确实收到了另一个错误或在部署的站点上,这是在aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer4/html/crystalexportdialog.htm"上找不到的404.我刚刚在站点上创建了文件夹,并将 C:WindowsMicrosoft.NETFrameworkv2.0.50727ASP.NETClientFilesCrystalReportWebFormViewer4 的内容复制到它并修复了它.
The answer to this is so stupid its embarrassing - my popup blocker was causing this error. I did get another error or on th the deployed site however and that was a 404 not found on 'aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer4/html/crystalexportdialog.htm'. I just created the folder and on the site and copied the contents of C:WindowsMicrosoft.NETFrameworkv2.0.50727ASP.NETClientFilesCrystalReportWebFormViewer4 to it and it fixed it.
这篇关于Crystal Report Viewer 打印/导出按钮在 ASP.NET MVC 应用程序中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!