在Crystal Report WPF中显示两个表中的数据 [英] display data from two tables in crystal report wpf
本文介绍了在Crystal Report WPF中显示两个表中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨.
我想使用来自两个不同表(两个不同数据集中的两个表/同一数据集中的两个表)的数据显示在wpf中的Crystal报表上.
我该怎么办?
Hi.
i want to use data from two different tables(two tables in two different datasets/two tables in same dataset) to display on crystal report in wpf.
how can i do this??
thanks.
推荐答案
niravsahayata写道:
niravsahayata wrote:
使用来自两个不同表的数据
use data from two different tables
1.使用子报表
2.在Crystal中使用组合数据集/数据表后,手动在代码中隐藏
3.使用 Union 查询获取组合数据
4.来自同一数据集的表可以像这样使用:
1. use Subreports
2. Combine the dataset/datatable manually in code-behind before using it in Crystal
3. use Union query to get combined data
4. Tables from same dataset can be used like this:
SetDataSource(dataset1.Tables["TableOrder"])
SetDataSource(dataset2.Tables["TableCity"])
<pre><pre><pre><pre><pre>
这篇关于在Crystal Report WPF中显示两个表中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文