Crystal Report Viewer print/export buttons not working in ASP.NET MVC app(Crystal Report Viewer 打印/导出按钮在 ASP.NET MVC 应用程序中不起作用)
问题描述
我的 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 应用程序中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Crystal Report Viewer 打印/导出按钮在 ASP.NET MVC 应用程序中不起作用


基础教程推荐
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01