如何在报表中将所有文本框的高度设置为相等大小? -水晶报表 [英] How to set height of all textboxes be equal size in an report? - Crystal Reports

查看:205
本文介绍了如何在报表中将所有文本框的高度设置为相等大小? -水晶报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理使用Crystal Reports创建的现有报告。

I'm working on an existing report created using Crystal Reports.

在此报告中,添加了新列,但是列/行的值超出了报表的默认设计。

In this report, a new column was added, but, the value of the column/row surpasses the default design of the report.


注意:以下示例位于详细信息部分报告
并等于表中的行。

NOTE: The following example is in the "Details section" of the report and is equivalent of the rows of a table.

示例:

 ____________________________ 
| 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         |
|___________|________________| 

我尝试过:


  1. 删除框对象:原始报表使用它们在详细信息部分上设置了黑色边框-如上例所示。

  2. 通过删除框对象,我直接设置数据字段或文本框的边框。这导致边界线没有增加/扩展到下一行。

所做的修改示例-在第#点中进行了描述2-设计不一致:

Example of the modification made - described in the point # 2 - not consistent design:

 ____________________________ 
| 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         |
|___________|________________| 




  1. 为每个变量使用可以增长选项数据字段-没有结果将其他列的大小调整为与工人类型新列相同。

  2. 在Internet上和此处进行搜索(在Stack Overflow中):到目前为止没有结果。

我不知道如何为报告中的所有数据字段/文本框设置相同的大小。

I don't know how to proceed for set the same size for all datafields/textboxes in the report.

是否可以在Crystal Reports中将所有文件设置为相同大小?

Is there a way to set all files to have equal size in Crystal Reports?

推荐答案

在Google和Stack Overflow中都进行了更深入的搜索(坦白地说,在周末休息后,),我找到了解决方案:

After search deeper in both Google and in Stack Overflow (and honestly, after a weekend break), I found the solution:

答案说:


不使用文本框的边框制作单元格边框,而是使用
行在文本框上方创建一条水平线,在文本框下方创建一条
的边框。两条线的宽度都长于细节
部分。对于垂直边框,请使用垂直线。从
组标题部分的顶部开始,到详细信息部分的底部结束。现在
,当内容较大时,单元格的高度会增加,然后将相应地设置所有
行。

记住这一点,我必须使用线对象并绘制将行划分的线,然后通过选择绘制的线并按 格式化多个对象 ,我在行-格式编辑器窗口中标记/选中了这两个选项:

This this in mind, I have to use the "Line Object" and draw the lines that divides the rows, then, by selecting the lines drawn and press "Format Multiple Objects", I marked/checked these two options on the Line - Format Editor window:


  • 在打印时扩展到该部分的底部

  • 在水平页面上重复

我认为第一个是做出魔术的人-即,延长线,但可以肯定的是,第二个选项也应标记。

I think the first one is the one who makes the "magic" - i.e, extending the line, but, just to be sure, the second option should be marked too.

这些更改之后,我确实得到了预期的结果:

After these changes, I did get the desired result:

 ____________________________   
| 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         |
|___________|________________| 

这篇关于如何在报表中将所有文本框的高度设置为相等大小? -水晶报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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