Print Page | Close Window

aligning text and numeric fields vertically

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Writing Code
Forum Discription: .NET 2003 programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=715
Printed Date: 03 May 2024 at 9:24am


Topic: aligning text and numeric fields vertically
Posted By: andyoneill
Subject: aligning text and numeric fields vertically
Date Posted: 22 May 2007 at 1:48am
Hello again,
 
Crystal from vs 2005.net and asp.net front end.
 
I have a report which mixes text objects and numeric fields on the same line.
So part of it will show something like "some text data field 3 x 4 = 12"
 
The 3, 4 and 12 rew numeric fields and the "some text data field" is a text field.  The  x and =  are text objects.
The vertical alignment of the numbers and textual fields differs in the html page rendered from asp.net.
So the numbers are low down on the line and the text high up.
 
It looks OK in the preview viewer but all over the show as html.
 
The fields are top aligned and exactly the same height.
I tried making them all a very small height and setting "can grow".
Still not right.
 
I'm thinking of maybe changiong the numeric fields to text in my sql but that'd be a PITA.
Is there any better work-round anyone has?
 
vertical-alighnment with CSS is problematic.
I suppose I could relatively position the numeric fields all a bit higher or something....



Replies:
Posted By: BrianBischof
Date Posted: 22 May 2007 at 10:31am
Ok, I'm not certain if this feature is in .NET 2003 (too many version to keep track of now), but I think it is: Don't put the fields next to each other. You can drag and drop a data field into a text object and it automaticatlly concatenates the fields side by side into a single text field. That way you don't have to worry about the alignment because it is all one field.

-------------
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>



Print Page | Close Window