Alternate Row Color in Crystal Report

10:08:00 PM Mahesh Kumar Yadav 2 Comments


Most of the time while developing reports people wonder how to have alternating row colours in the report like below.

Customer Name Address City State Zip
Suparba panda 123 olive rd St Louis MO  54678
John Doe 456 Tree drive Raleigh NC 14676
Jane Doe 768 Hudson rd Atlanta GA 76555

There is a trick to it.

Go to the format section of the Details. Click the Colour Tab. Then click the button next to the Background Colour Check-box..
CR1

In the formula editor of background colour, type the following:
if RecordNumber mod 2 = 0 then crSilver else crNoColor

CR2

Save and close the editor.
And now when you run the report you will see alternate colours of silver and white in the details section.

You Might Also Like

2 comments :

  1. Just the way I have expected. Your website really is interesting. Casino online

    ReplyDelete
  2. If you are interested in earning money on-line, taking part in} on Casino Korea is simply the best approach to transfer on. Being a beginner, in case you are going through out some difficulties in taking part in} on-line casinos, listed here are|listed below 토토사이트 are} some tricks that may help you a large number} in the same. This certainly one of the|is among the|is doubtless one of the} most popular taking part in} card games, but if you’re taking part in} poker, you need to|you should|you have to} be careful about which model of the game you’re taking part in}. Always read via all the directions before taking part in} for actual cash. The solely local-accessible on line casino, Kangwon Land, has barely any system to prevent playing addiction because of|as a result of} it wants to increase its earnings.

    ReplyDelete