水晶报告有3个子报告 [英] Crystal Report with 3 SubReports

查看:101
本文介绍了水晶报告有3个子报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的c#Windows应用程序Crystal Reports中有一个奇怪的问题,由于某些原因和要求我需要在这里创建一个包含3个子报表的水晶报表我在所有4个报表中都没有任何常见字段,包括主报表。当我添加2个子报告然后报告正常,但是一旦我添加第3个子报告,前2个子报告就会出现问题,就像所有字段都消失一样,甚至一些标签也是如此。我认为报告存在一些问题,我一个接一个地尝试了所有的报告,但是如果我有3个子报告,其工作正常,我会遇到这个问题。可能是什么问题?什么是解决方案?

解决方案

大家好我已经解决了这个问题。



总是在将子报表添加到Crystal报表时遵循顺序,同时为这些报表提供数据源我们还需要遵循相同的顺序,水晶报表不会考虑哪个子报表将首先出现在报表中,但它会根据子报表添加顺序到主报表报告。

I have a peculiar Problem in my c# Windows application Crystal Reports due to some reasons and Requirement i need to create a crystal report with 3 subreports here i dont have any field common in all 4 reports including main report. when i add 2 subreports then report is coming fine but as soon as i add 3rd subreport the first 2 subreports are getting problem like all fields are disappearing and even some of the labels too. i thought some problem with the reports and i tried all the reports one by one and in combinations but im getting this problem if i have 3 subreports with 2 its working fine.. what may be the problem ? whats the solution for this??

解决方案

Hi Guys I have Solved this Problem By Myself.

Always while adding the Subreports to a Crystal Report follow the order and while giving the datasource for those also we need to follow the same order crystal report wont considers which subreport will be first in the report but it goes according to the subreport addition order to main report.


这篇关于水晶报告有3个子报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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