如何编写公式来生成水晶报表中的所有动态文本字段

时间:2013-09-06 08:57:23

标签: crystal-reports crystal-reports-2008

  

嗨专家,

     

有没有办法自动增加动态文本的内容   水晶报告中的字段。我会这样给你一个例子。

     

我有值显示在水晶报表中(我们从数据库中动态获取)   Employee_ID,Employee_name,Employee_address

     

现在,Employee_ID,Employee_name就可以了。但对于   Employee_address值可以是数据库中的任何值,即它   也可以很长(也像80个charectors)。那将是下一行和   重叠行列('地址')下面的值。

     

现在,当一个动态文本字段增长时,有什么方法(或公式)   喜欢地址,然后是前两个Employee_ID和Employee_address   应自动增长,下一行数据不应重叠   还

     

请提出想法。

     

提前致谢。

1 个答案:

答案 0 :(得分:1)

如果您标记三个字段can grow,则每个字段将根据需要展开(垂直)以容纳数据。如果该字段不需要扩展,则不会。此外,如果三个字段并排排列在同一details部分中,则不会有任何重叠 - 水平或垂直。

如果您尝试始终将三个字段对齐,请考虑任何字段的垂直大小(示例中的地址字段似乎是问题),那么您有一个不同的问题:

Relative Positions
This option allows you to lock the relative position of a report object next to a grid object within a section. For example, if you place a text object one centimeter to the right of a cross-tab object, during report generation the program will push the text object to the right, so that the one centimeter space is maintained regardless of the width of the cross-tab object.
Note: 
Only horizontal locking is possible. If you need to preserve relative vertical positioning, you should create a new report section.
Once Relative Positions is selected for a section, you can no longer drag objects to new positions within that section. To change an object's position, use the Object Size and Position dialog box.
Relative positioning applies only to objects placed to the right of grid objects (that is, objects that can grow horizontally).
相关问题