在asp.net的Web应用程序中将Crystal Report与Sql Server表绑定 [英] Bind Crystal Report with Sql Server Table in web application of asp.net

查看:61
本文介绍了在asp.net的Web应用程序中将Crystal Report与Sql Server表绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们

我想将水晶报表与asp.net中Web应用程序中的sql server表绑定,我不知道该怎么做.

它应该是动态的,我的意思是说通过编码进行绑定,因为我可以根据自己的要求获取数据.

Hi Friends

I want to bind crystal report with my sql server table in my web application in asp.net, I have no idea how to do this.

It should be dynamic I mean to say bind through coding because I can get data according to my requirement.

推荐答案



请执行以下步骤.

1.将水晶报表添加到您的项目中.
2.添加一个数据集并用默认数据填充它,或者添加一个数据表和列
3,在后面的代码中加载Crystal报表并为其分配一个已动态获取的数据表
4.添加crystalreport查看器并将此报告添加到其中.

就这样

希望对您有帮助

如果需要更多详细信息,请告诉我

谢谢&问候,
斯里曼
Hi,

Follow below steps.

1.Add a crystal report to your project.
2.Add a dataset and get it filled with the default data or you an add a datatable and the columns
3.In your code behind load your crystal report and assign a datatable to it which you have fetched dynamically
4.Add a crystalreport viewer and add this report to it.

Thats it

I hope this helps

Do let me know if you need further details

Thanks & regards,
Sriman


这篇关于在asp.net的Web应用程序中将Crystal Report与Sql Server表绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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