cancel
Showing results for 
Search instead for 
Did you mean: 

HTML Text Interpretation. force text alignment to bottom

ciceroan
Participant
0 Kudos

I should place a multiline text at page footer of my report. So, I created my field box, set vertical alignment to "bottom", and Text Interpretation to HTMLText.

at runtime, text appears placed at top of box item, leaving a lot of empty space at bottom.

How can I force text to be placed at bottom?

Accepted Solutions (0)

Answers (4)

Answers (4)

ido_millet
Active Contributor
0 Kudos

You can insert an image from a dynamic path using a dummy image and its dynamic Graphic Location expression.

ciceroan
Participant
0 Kudos

is there a way to insert an image via HTML text?

I tried setting {query.text} value like this:

<img src="\\server\img\logo.jpg"/>

but at runtime it appears blank

DellSC
Active Contributor
0 Kudos

Crystal only works with a limited set of HTML tags. IMG is not one of them.

-Dell

ido_millet
Active Contributor
0 Kudos

If Crystal settings don't provide a solution, a UFL (User Function Library) can on-the-fly turn the html text to an image and display that image.

Here's a description of how this works with my CUT Light UFL.

Ken Hamady maintains a list of 3rd-party UFLs here.

DellSC
Active Contributor
0 Kudos

Make the the field containing the text one row tall. Then right-click on it and select "Format Field..." and turn on "Can Grow". This will make the box only as tall as the text that's in it.

Unfortunately, with HTML interpretation, I think the text will always end up at the top of the box even if you set it to align to the bottom.

-Dell

ciceroan
Participant
0 Kudos

hello,

really, that was my first approach: place a textbox having height 1500, can grow=true, and text interpretation=none/HTMLText.

then, I tried the opposite approach, ie. a textbox having height almost zero, can grow and HTMLText interpretation. In both cases, the layout seems to be the same (as shown in picture).

I realized that, using a formula like '<center>' & {query.text}, text is displayed as centered. So, I tried with '<bottom>' & {query.text}, unsuccessfully.

I dont understand why, it seems CR runtime places some blank rows at end of text...

ciceroan
Participant
0 Kudos

by 'centered text', I mean horizontal alignment.

DellSC
Active Contributor
0 Kudos

Try creating a formula that will trim any blank characters from the end of the field and using that instead:

Trim({MyTable.MyField})

However, one of the challenges with page footers is that Crystal will reserve the space for the tallest footer, even if it's not the one that's displaying. So, if you have a different text on each page, that may be part of what you're running into as well.

-Dell