简体   繁体   中英

In Crystal Reports, how to make a textobject grow upwards instead of downwards?

Is there some way to format a textobject to stick to the bottom of one section and then, depending on how much text that is filling it, make it grow upwards? Much like the behavior that we associate with vertical alignment. As far as I know, vertical-alignment:bottom (or similar) does not exist in Crystal Reports.

Is there a way to accomplish this by code, formatting formulas or some other way?

You should be able to achieve the same effect by

  • splitting the existing section into two subsections
  • placing the growable field as the only field in the first subsection, and all other fields in the second subsection
  • in the section expert, checking the "Underlay Following Sections" option for the first subsection.

Put the field on the report twice. Suppress one if it's short, supress the other if it's long.

I just found workaround to this add carriage return chr(13) before text depends on text length

If Len < 25
Chr(13) + Chr(13) + Text
else if Len < 50
char(13) + Text 
....

and so on

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM