如何使用Crystal Reports与ASP.NET? [英] How to use Crystal Reports with ASP.NET?

查看:171
本文介绍了如何使用Crystal Reports与ASP.NET?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用水晶报表与ASP.Net 2.0。
显示如何在生产服务器上部署Crystal Reports的任何示例/教程/示例。

How to use crystal Reports with ASP.Net 2.0. Any Samples/Tutorials/Examples which shows how to deploy Crystal Reports on a production Server.

推荐答案

通过自己的痛苦,这里有几个指针,希望可以节省你的时间...

Having just been through the pain of this myself, here's a couple of pointers that will hopefully save you time...

MSDN上的水晶报表 - 很多好东西在这里

Crystal Reports on MSDN - lots of good stuff in here

我应该使用水晶报表的持久性方法 - 提供详细信息和代码示例如何最好地控制报表对象的生命周期。

Which Persistence Approach Should I Use with Crystal Reports - gives detail and code samples on how best to control the lifesycle of a report object

此帖子还提供了有关报表对象生命周期的一些好建议

This post also gives some good advice around the report object lifecycle

部署...最新的Crystal Reports运行时不运行在64位环境中,因此如果部署到64位服务器,您将需要配置IIS以运行32位模式,或使用运行时的早期版本。我最幸运的是与VS2008分发的运行时,这可以在

Deployment... The latest Crystal Reports runtimes don't run in a 64 bit environment, so if deploying to a 64 bit server you will either have to configure IIS to run an 32 bit mode, or use a previous version of the runtime. I have had the most luck with the runtime that is distributed with VS2008, this can be found in


C:\Program Files\ Microsoft SDKs \Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5

我注意到您使用的是ASP.NET 2.0 - 我肯定有一个VS2005等效运行时。尝试并获得部署环境在项目中早期工作,因为它将毫无疑问会导致比你预期更多的头痛。

I note you are using ASP.NET 2.0 - i'm sure there is a VS2005 equivalent runtime. Try and get the deployment environment working early on in the project, as it will no doubt cause more headaches than you expect.

最后,最后一点,时间,值得一提 - 水晶报表中的标准参数屏幕只会带你到目前为止。如果您想要向用户显示参数(例如,使参数取决于另一个参数的选择)变得复杂,则需要滚动您自己的参数屏幕。这是相当容易,因为对象模型让你访问所有的参数所需的信息。我们已经按照创建一个通用参数屏幕的路线,根据指向的报告中的参数建立自己。

Finally, one last point that has cost us some time and is worth mentioning - the standard parameters screen in Crystal Reports will only take you so far. If you want to get complex with how you present your parameters to the user (e.g. by having a parameters dependent on the selection of another parameter) you will need to roll your own parameter screens. This is fairly easy as the object model gives you access to all the info you will need about parameters. We have gone down the route of creating a generic parameters screen that builds itself according to the parameters found in the report it is pointed at.

这篇关于如何使用Crystal Reports与ASP.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆