使用文本框中的参数的Crystal报表并从多个表中检索数据 [英] crystal report using parameter from text box and retrive data from multiple table

查看:76
本文介绍了使用文本框中的参数的Crystal报表并从多个表中检索数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用asp.net中的Crystal报表生成一份收据
水晶报告上生成的收据

报告包含以下字段
收据编号,学生证,学生姓名,课程,费用amt,费用存放日期

数据包含在两个表中
一个是
学生记录包含
学生证,学生姓名,地址,班级

其他是费用记录中包含

收件人ID,学生ID,费用amt,费用存放日期

i want to generate a recipt using crystal reports in asp.net
the recipt generate on crystal report

report contains these fields
recipt no, student id, student name, class, fee amt, fee deposite date

the data contains in two tables
one is
student record contains
student id, student name, address, class

and other is fee record contains

recipt id, student id, fee amt, fee deposite date

推荐答案

首先您可以借助两种方法生成它,
1.使用内联查询.
2.使用过程.
但是,在您的问题中,最好使用内联查询.

现在,您该怎么做.
步骤1.编写内联查询.
步骤2.执行查询.
步骤3.然后使用while循环将结果集放入.xsd.
步骤4.然后转到.xsd创建数据集.
步骤5.调用.xsd进入Crystal报表.
步骤6.设计报表,使其包含在字段"值中.

这些是生成Crystal报表的步骤.
希望它能帮助您生成水晶报表.

编码愉快.....:)
1st of all you can generate it with the help of two ways,
1. Using Inline Query.
2. Using Procedure.
But, in your Question it is good for you to use Inline Query.

Now, how you can do it.
Step 1. Write an inline query.
Step 2. Execute the Query.
Step 3. The Result set are then put in to .xsd using while loop.
Step 4. Then we go to .xsd create a data set.
Step 5. Call the .xsd in to Crystal report.
Step 6. Design the Report as it come in Fields value.

These are the Steps to generate the a Crystal report.
I hope it''s help you to generate crystal report.

Happy coding..... :)


这篇关于使用文本框中的参数的Crystal报表并从多个表中检索数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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