如何在另一个详细信息节C#,水晶报表,vs2008中应用多列 [英] How to Apply Multicolumn in another Details Section C#, Crystal Reports, vs2008

查看:496
本文介绍了如何在另一个详细信息节C#,水晶报表,vs2008中应用多列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有报告





在这里有4个细节部分 a,b,c,d 多列只有一个详细信息部分,即目前有子报表的部分。我使用Sub报告,因为我想,应用多列只有一个细节部分不可能....



并进入另一个负担,我的报告可以有更多



因此,只有在部分C中才能使用子报表,因此在打印和/或导航到最后一页时, 我必须在数据布局中的两列中显示数据。其余部分 a,b,d 只能有一列。



还有,我有2个表 rptDoc - >文档[所有文档列表]和 rptSche - >计划[所有计划的列表]。每个文档可以有一个或多个计划每个,所以,我必须显示文档记录以及相关的计划..计划必须在部分C 与2列。 / p>

这是可能的

解决方案

列:如果报告的其他详细信息部分(a,b,c& d)从同一数据源提取,则没有理由不能将列放置在这些部分的任何位置。只需根据需要在每个部分中放置字段。
您还可以根据需要抑制/隐藏节/字段。我不知道你的要求的细节,所以我不能详细说明,但水晶报告应该给你所需要的灵活性。



至于你的第二个问题,好像你可以链接 rptDoc 表与 rptSche 表,但是有必要和我提到的第一个问题



当您需要在报表中放置无法与报表数据源链接的数据时,会产生子报表的需要,需要特定数据出现在某个地方或时间超出主报告的流程。您总是希望尽可能避免使用子报表,因为每次报表遇到子报表时都会进行数据库读取,如果发生在详细信息部分,则可能会有成千上万次重复读取。


I am Having a Report

In here am Having 4 Details Section a,b,c,d , and I want to apply Multi column in only one Details section, that is the Section which has the Sub Report Currently. I Have used Sub report because I thought, applying multiple column to only one Details Section is not Possible....

and Got into another Burden, My Report can have more than 2500 pages, while using subreports, it is very slow while printing and / or navigating to last Page.

So, only in the Section C I have to show data in two Columns Across Data Layout. And the Rest of the Sections a, b, d, can have only one column.

And also, I have 2 Tables rptDoc -> Documents[List of All Documents] and rptSche -> Schedules[List of All Schedules]. every Document can have 1 or more schedules each, So, I have to show Document Record as well as Associated Schedules.. the Schedules must be in Section C with 2 Columns.

Is that Possible??

解决方案

To your first question regarding the columns: If the other Detail sections (a, b, c & d) of the report are pulling from the same data source then there is no reason why you can't place columns wherever you want in those sections. Simply place the fields as required in each section. You can also suppress/hide the sections/fields as necessary. I don't know the specifics of your requirements so I can't elaborate but Crystal Reports should give you the flexibility you need.

As for your second question, it sounds as though you can link the rptDoc table with the rptSche table however necessary and as I mentioned for your first question place the fields in whatever sections you need.

The need for subreports arises when you need to place data in the report that can't be linked with the report's data source or where you need specific data to appear in a certain place or time out of the flow of the main report. You always want to avoid using subreports as much as possible because database reads are made everytime the report encounters the subreport, and if that happens to be in the Details section then there can be thousands of repetitive reads.

这篇关于如何在另一个详细信息节C#,水晶报表,vs2008中应用多列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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