[SOLVED]使用带有标题的Crystal Report在多列中显示记录 [英] [SOLVED]Displaying records in multiple columns using Crystal Report with Header

查看:98
本文介绍了[SOLVED]使用带有标题的Crystal Report在多列中显示记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对使用Crystal Reports有疑问.

我需要在多个列中显示带有标题的记录并且我已经使用
完成了 (右键单击Section Expert..>>
在部分专家"中,突出显示详细信息">>.
选择具有多列的格式">>
布局标签,然后设置宽度>>
设置水平和/或垂直)


示例:假设我有5条记录,每行显示2列

UserID名称UserID名称
1个User1 2个User2
3用户3 4用户4
5个用户5

我的要求是仅在第二列中存在记录时才显示标题

类似的场景:
如果我只有一条记录,那么它应该是这样的:(不要在右侧显示标题)

用户ID名称(自动从此处压缩标题...)
1个用户1


任何建议将不胜感激!

谢谢,
Imdadhusen

I have a question about using Crystal Reports.

I need to display records in multiple columns with a Header, and I have done it with
(Right click on Section Expert.. >>
In the Section Expert, highlight Details >>
select Format with Multiple Columns >>
Layout tab and set the Width >>
Set the Horizontal and/or Vertical )


Example: Suppose, I have 5 records and display in 2 columns per row

UserID Name UserID Name
1 User1 2 User2
3 User3 4 User4
5 User5

My requirement is to display the Header only when record exist in second column

Scenario like:
If I have only one record then it should like this: (don''t display header in right section)

UserID Name (automatically supress header from here...)
1 User1


Any suggestion would be appreciated!

Thanks,
Imdadhusen

推荐答案

我已使用以下步骤完成操作:

1.我在每个部分添加了计数字段.
右键单击>>插入摘要>>选择字段

2. 根据条件(右侧列)
抑制列标题
3. 选中的抑制
4. 点击x + 2 按钮
5. 添加公式
如果(Count({rep_rd1.AppField_Position},{rep_rd1.SORT_ORDER})= 1),则为true
6. 运行报告

谢谢,
Imdadhusen
I have done using following steps:

1. I have added Count Field of each section.
Right click >> Insert Summary >> Select Field

2. Suppress Column Header based on condition (right side column)
3. Checked Suppress
4. Click on x+2 button
5. Add Formula
if (Count ({rep_rd1.AppField_Position}, {rep_rd1.SORT_ORDER}) = 1) then true
6. Run the Report

Thanks,
Imdadhusen


这篇关于[SOLVED]使用带有标题的Crystal Report在多列中显示记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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