Alignment in CrystalReports.NET

Hi,

I have a report that  prints data on a pre printed paper ( the paper has a grid printed on it and the data is printed in the squares)

Each field from the dataset can contain a string OR an asterick. If the value is an asterick(*)/astericks(**) then it should be printed on the top right corner of the square and if it is a value other than asterick then it should be printed in the middle of the square.  Currently the report prints every thing (asterick or other values) in the midle. How can this be accomplished?

The type of field is 'string'

Thanks,
Gauri

p_gauri7Asked:
Who is Participating?
 
mlmccConnect With a Mentor Commented:
What version of Crystal?

Try this

Select the field
Right click and select FORMAT FIELD
Use the formula button next to horizontal alignment
Formula
if ({table.fieldname} = "*") then
   RightAligned
Else
  CenteredHorizontally

mlmcc
0
 
mlmccCommented:
Glad i could help

mlmcc
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.