Alternate Row Color in Crystal Report using VB.NET


Alternate colours can be added by formatting the details section of the report.

Go to the format section of the Details. Click the Color Tab. Then click the button next to the Background Color CheckBox..
In the formula editor of background color, type the following:


if RecordNumber mod 2 = 0 then
crSilver
else
crNoColor
endif

Save and close the editor.

And now when you run the report you will see alternate colors of silver and white in the details section.


Comments

Author: mausumi24 Jan 2010 Member Level: Gold   Points : 0

thanks
keep posting more.

4m
mausumi



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: