• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • Last Modified:

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

0
p_gauri7
Asked:
p_gauri7
  • 2
1 Solution
 
mlmccCommented:
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now