将数据从ASPX页面绑定到Crystal报表 [英] Binding data from aspx page to crystal report

查看:88
本文介绍了将数据从ASPX页面绑定到Crystal报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hii ..如何通过单击按钮将aspx页中的数据绑定到Crystal报表.通常用于网格,我们使用
编写用于在按钮中搜索的sqlcommand后,单击"
用于网格修复

hii.. how do we bind data from aspx page to crystal report with a button click. usually for grid we use
after writing the sqlcommand for searching in a button click we give like this
for retreiving in grid

if (dt.Rows.Count >(greater than) 0)
       {
           GridView1.DataSource = dt;
            GridView1.DataBind();
       }
 for crystal report i will be giving as
  if (dt.Rows.Count >(greater than) 0)
       {
          response.Redirect("crystalreport.aspx") //the page where we can view the crystal report.
       }


用crystalreport aspx页面编写的代码应该是什么?
如果使用存储过程,则在使用"where"条件的情况下,水晶报表中参数的谨慎值应该是什么?


what should be the code written in crystalreport aspx page
and in case we are using stored procedure what should be the discreet value of the parameter in crystal report in case ''where'' condition is used

推荐答案

Nihal Hussain ,

请参考此链接.可能会对您有帮助.
http://geekswithblogs.net/AzamSharp/archive/2006/09/13/91125.aspx [ ^ ]
Hi Nihal Hussain,

Refer this link. It may help you.
http://geekswithblogs.net/AzamSharp/archive/2006/09/13/91125.aspx[^]


检查以下链接:


使用其功能组逐步创建Crystal Report,图形,交叉表和子报表
使用Visual中的Crystal Reports生成报告Studio 2010
使用SqlDataSource将参数绑定到Crystal Report控制–一种简化的代码方法
使用以下步骤逐步创建Crystal Report其功能组,图形,交叉表和子报表
check following links :


Step by Step Creation of Crystal Report using its Features Group, Graph, Cross-Tab and Sub Report
Generate a Report using Crystal Reports in Visual Studio 2010
Binding parameters to a Crystal Report using SqlDataSource control – A reduced code approach
Step by Step Creation of Crystal Report using its Features Group, Graph, Cross-Tab and Sub Report


这篇关于将数据从ASPX页面绑定到Crystal报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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