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 应用程序中不起作用


- C# 通过连接字符串检索正确的 DbConnection 对象 2022-01-01
- 为什么 C# 中的堆栈大小正好是 1 MB? 2022-01-01
- 在 LINQ to SQL 中使用 contains() 2022-01-01
- Azure Active Directory 与 MVC,客户端和资源标识同一 2022-01-01
- 带问号的 nvarchar 列结果 2022-01-01
- CanBeNull和ReSharper-将其用于异步任务? 2022-01-01
- 是否可以在 .Net 3.5 中进行通用控件? 2022-01-01
- Windows 喜欢在 LINUX 中使用 MONO 进行服务开发? 2022-01-01
- 使用 rss + c# 2022-01-01
- 在 C# 中异步处理项目队列 2022-01-01