How to align lines in Crystal Reports

Is there a good way to make horizontal lines actually line up in Crystal Reports? I can select text and field objects, right-click, and do various sizing and alignments. But that's not an option with a line. I need header fields underlined (and for whatever reason, our standard says to NOT use underline), and I want them to line up across the report.

asked Jan 18, 2013 at 22:34 thursdaysgeek thursdaysgeek 7,864 21 21 gold badges 80 80 silver badges 118 118 bronze badges

4 Answers 4

It's a pain, but I've found one way to do it.

Both field and line items have a right-click menu option called "Size and Position". It doesn't take just any value, especially with Snap to Grid turned on (and doesn't always take exactly what you choose with it not turned on), but you can carefully make sure each line has the same Y value (for horizonal lines). And, if you want them to align and be the same length as the field headers they are underlining, compare each header field X and Width values, and make each line also match that.

answered Jan 18, 2013 at 22:52 thursdaysgeek thursdaysgeek 7,864 21 21 gold badges 80 80 silver badges 118 118 bronze badges

In design mode, you can add horizontal guide lines by clicking in the ruler (the vertical one) fields will get sticky to it.

You can also select several fields, right click "Align > Bottoms" and them move the fields to the guide lines.

You can also format a single field to "lock its position and size", then Align the others to it

answered Jan 22, 2013 at 14:05 11 2 2 bronze badges

Yeah, but I couldn't get lines to stick to the guide lines, nor would the align work with lines. I can make the fields line up using "align" but not the lines under them.

Commented Jan 22, 2013 at 19:31

Another way is to select all the lines you want to left align, move them to the far left with the left cursor key until they hit the left margin and keep pressing the left key until they all align themselves. Just a trick!

answered Mar 25, 2016 at 13:14 Leonard Tonna Leonard Tonna 11 1 1 bronze badge

Put a bottom border on the header Text Object.

answered Mar 8, 2017 at 16:36 sagesmith7 sagesmith7 33 2 2 bronze badges

Related

Hot Network Questions

Subscribe to RSS

Question feed

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2024 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2024.9.10.15036