我正在处理使用Crystal Reports创建的现有报告。
在此报告中,添加了新列,但该列/行的值超过了该报告的默认设计。
NOTE:下面的示例在报告的“详细信息”部分中并且等效于表的行。
示例:
____________________________
| Name | Worker type | // (Worker type) is the new column
|___________|________________|
| Item 1 | Text 1 | // Row 1
| Item 2 | Text 2 |
|___________| Text 3 |
| Item 3 | Text 4 |
| Item 4 |________________|
|___________| Text 2 | // Row 2 - might be bigger "height" than "Name" column.
| Item 5 | Text 1 |
| Item 6 | Text 2 |
|___________|________________|
所需的渲染结果是:
____________________________
| Name | Worker type | // (Worker type) is the new column
|___________|________________|
| Item 1 | Text 1 | // Row 1
| Item 2 | Text 2 Text 3 |
|___________|________________|
| Item 3 | Text 4 | // Row 2
| Item 4 | |
|───────────|────────────────|
| Item 5 | Text 2 | // Row 3 - all rows / columns has appropiate design size.
| Item 5 | Text 1 |
| Item 6 | Text 2 |
|___________|________________|
我尝试过:
进行修改的示例-在第2点中描述-设计不一致:
____________________________
| Name | Worker type | // (Worker type) is the new column
|___________|________________|
| Item 1 | Text 1 | // Row 1
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
| Item 2 | Text 2 | // Row 2
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
| Text 3 | Text 3 | // Row 3
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
| Item 4 | |
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
| Item 5 | Text 1 |
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
| Item 6 | Text 2 |
|___________|________________|
我不知道如何继续为报告中的所有数据字段/文本框设置相同的大小。
是否可以在Crystal Reports中将所有文件设置为相同大小?
在Google和Stack Overflow中进行了更深入的搜索(老实说,周末休息后,我找到了解决方法:
在此answer中说:
”,我标记/选中了这两个行-格式编辑器窗口中的选项:不要使用文本框的边框来制作单元格边框,而不是使用线条在文本框上方创建一条水平线,然后在另一条上创建边框在文本框下方。两条线的宽度都长为细节部分。对于垂直边框,请使用垂直线。从组标题部分的顶部,结束于详细信息部分的底部。现在当内容较大时,单元格的高度会增加行将相应设置]]。
考虑到这一点,我必须使用“线对象”并绘制将行划分的线,然后,通过选择绘制的线并按“ 格式化多个对象
[我认为第一个是做出“魔术”的人-即延长线,但是,请确保第二个选项也应标出。
经过这些更改,我确实获得了预期的结果:
____________________________
| Name | Worker type | // (Worker type) is the new column
|___________|________________|
| Item 1 | Text 1 | // Row 1
| Item 2 | Text 2 Text 3 |
|___________|________________|
| Item 3 | Text 4 | // Row 2
| Item 4 | |
|───────────|────────────────|
| Item 5 | Text 2 | // Row 3 - now all rows / columns has appropiate design size.
| Item 5 | Text 1 |
| Item 6 | Text 2 |
|___________|________________|