How to align lines in Crystal Reports

thursdaysgeek picture thursdaysgeek · Jan 18, 2013 · Viewed 28.9k times · Source

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.

Answer

thursdaysgeek picture thursdaysgeek · Jan 18, 2013

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.