Dynamic expansion of a Crystal report

不想你离开。 提交于 2020-01-16 08:46:21

问题


I have a crystal report consisting of several pages. Each page consists of a several fields that are populated from database.

Suppose the following example :

Name : aaaaaa
Education Background:bbbbbbb
Age:cc

In my case the Education Background's details (bbbbbbb here) may consist of several words or several pages. If I set a large space for it, it will waste a big space on report (Yes. May be a paper) in a case of short answer.

How can I eliminate this problem? Does crystal reports provide a way to dynamically expand the space?


回答1:


Not a problem. Assuming these fields are in the Details section,

  1. Create some Details subsections and move your fields into them (Report->Section Expert->Insert). In your example, you would have "Name" in "Details A", "Education Background" in "Details B", and Age in "Details C".
  2. Right click on the Education Background field and go to Format Field->Common->Can Grow.
  3. Make sure that in the design view, all subsections are at the minimum height needed to hold the fields.

Sounds complicated when I write it out like that, but it's not.



来源:https://stackoverflow.com/questions/2942457/dynamic-expansion-of-a-crystal-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!