将查询字符串与Crystal报表一起使用 [英] Use of query string with crystal report

查看:93
本文介绍了将查询字符串与Crystal报表一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...
我想使用Person_ID并从数据库中生成相应Person_ID,Person名称的水晶报表...我正在使用查询字符串传递此Person_ID ....请帮助我... Plzzzzz
在Advance

hi...
i want to use Person_ID and generate the crystal report of the respective Person_ID,Person name from database...I am passing this Person_ID using Query string....Please help me...Plzzzzz
Thanks in Advance

推荐答案

中表示感谢,您可以将数据库中检索到的数据填充到DataTable中,然后将Crystal Report Datasource设置为该DataTable

DataSet Dtset =新的DataSet();
DtAdapter.Fill(Dtset,"Student");
Rpt r = new Rpt();
r.SetDataSource(Dtset.Tables ["Student"]);
you can fill retrieved data from database to DataTable and then set crystal report Datasource to that''s DataTable

DataSet Dtset = new DataSet();
DtAdapter.Fill(Dtset, "Student");
Rpt r= new Rpt ();
r.SetDataSource(Dtset.Tables["Student"]);


这篇关于将查询字符串与Crystal报表一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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