使用Crystal报表参数 [英] Use of Crystal report parameter

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

问题描述

我可以从 SQL QUERY 传递参数来创建水晶报告。但在水晶报告中我们可以创建参数。什么时候应该从crystal report而不是sql查询创建参数。哪个是最好的。请详细讨论详细信息,因为我是水晶报告中的新手。

I can pass parameter from SQL QUERY to create crystal report. But in crystal report we can create parameters. When should we create parameter from crystal report instead of sql query. Which is the best. Please discuss details with example as I am new in crystal report.

推荐答案

区别在于使用SQL查询只能过滤数据,但参数字段不仅可以过滤数据,还可以可以做一些动态的事情,如显示/隐藏字段等,

同意Prasad。使用参数字段,您可以轻松过滤数据&动态。让我举几个例子。

C# Crystal Reports字符串参数 [ ^ ]

C#Crystal Reports整数参数 [ ^ ]

C#Crystal Reports日期参数 [ ^ ]

C#Crystal Reports - 迄今为止的日期 [ ^ ]

你不能使用SQL查询方式PUSH方法( C#Crystal Reports without database [ ^ ]),你需要参数字段

你也可以使用参数字段和其他字段,如 formula s等,
The difference is using SQL query you could only filter data but Parameter fields not only filter data, you could do some dynamic things like show/hide fields, etc.,
Agree with Prasad. Using Parameter fields you could filter the data easily & dynamically. Let me show you few examples.
C# Crystal Reports String parameter[^]
C# Crystal Reports Integer parameter[^]
C# Crystal Reports Date parameter[^]
C# Crystal Reports - Date to Date[^]
And you can't use SQL query way in PUSH method(C# Crystal Reports without database[^]), there you need parameter fields.
Also you could use parameter fields with other fields like formulas, etc.,


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

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