Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 273
thursdaysgeek Avatar asked Jan 18 '13 22:01

thursdaysgeek


People also ask

How do I change alignment in Crystal Reports?

1) Right click on the field. 2) Click on Format Field Option. 3) Select the Common Tab. 4) Click the formula editor in front of Horizontal Alignment and add the setting required.

How do I resize a Crystal Report?

Open the Crystal Report in Design View and then right click and select Design then Page Setup option from the Context menu. 2. Inside the Page Setup window, you will see options to set the Height and Width of Crystal Reports in Pixels, Inches and Centimeters.


1 Answers

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.

like image 97
thursdaysgeek Avatar answered Oct 05 '22 07:10

thursdaysgeek