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 应用程序中不起作用
基础教程推荐
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
- C# 从 List<List<int>> 中删除重 2022-01-01
- .NET SerialPort DataReceived 事件未触发 2022-01-01
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
- WPF 模态进度窗口 2022-01-01
- Moq It.Is<>不匹配 2022-01-01
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
