简体   繁体   English

将Crystal报表垂直分为两部分

[英]Divide Crystal Report Vertically in Two Parts

I have to SP, from which i want to generate Report. 我必须要SP,我要从中生成报告。 I need output in two different Columns on one Detail Sections. 我需要在一个详细信息部分的两个不同的列中输出。 I have tried Format with Multiple Columns , but it do not full fill my needs.. 我尝试Format with Multiple Columns ,但是不能完全满足我的需求。

-- My Data
-- Student Record
  +------+------------+
  | Name | FatherName |
  +------+------------+
  |  A   |   B        |
  |  C   |   D        |
  |  E   |   F        |
  +------+------------+

    --Teacher Record
  +------+------------+
  |Name  | FatherName |
  +------+------------+
  |  W   |   X        |
  |  Y   |   Z        |
  +------+------------+

My required out will look like below ... 我需要的内容如下所示...

 Students Record                             Teachers Record
+------+------------+                    +------+------------+
| Name | FatherName |                    | Name | FatherName |
+------+------------+                    +------+------------+
| A    |     B      |                    |   W  |      X     |
| C    |     D      |                    |   Y  |      Z     |
| E    |     F      |                    +------+------------+
+------+------------+

Is there any way to get this output in one Detail Section. 有没有办法在一个Detail节中获得此输出。 Student and Teacher have different number of records, one have 10 record 2nd have 5 record.. 学生和老师的记录数不同,一个有10条记录,第二个有5条记录。

Any Help... 任何帮助...

You can't do this in one detail section in Crystal Reports. 您无法在Crystal Reports中的一个详细信息部分中执行此操作。

However, you can develop a report for each of these tables separately, then add the two reports side-by-side as sub-reports into a new report - this should achieve your objective. 但是,您可以分别为每个表开发一个报表,然后将两个报表作为子报表并排添加到新报表中-这应该可以实现您的目标。

我认为您可以通过右键单击详细信息部分,然后依次单击“插入”->“子报告”,一个用于“教师”记录和一个用于“学生”记录,然后使用各自的数据源编辑这些子报告来做到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM