Solved

How display greybar color effects?

Posted on 2001-07-09
2
510 Views
Last Modified: 2011-09-20
Basics:  Crystal Reports 8.0

Question:  How do I print a background color (Silver) on every other line on a report?  I want to make it easier for the user to read long and wide reports that contain a lot of numbers.  

There is a type of paper called greybar or greenbar that is preprinted with grey or green lines for dot-matrix printers but that is normally not available for laser jet type printers.  So I want to just print a grey (silver) background color on every other line of the report thus achieving the same effect.

Normally to accomplish this I edit the detail section to conditionally print the grey background color if the record number being printed is an even number.  But in this case, there may or may not be group headers and/or footers.  Thus to show a uniform look on each page, I want to print the background grey on every other line regardless of the number of detail lines and headers/footers.

Any ideas?  Thanks.
0
Comment
Question by:EYoung
2 Comments
 
LVL 12

Accepted Solution

by:
DRRYAN3 earned 50 total points
ID: 6267286
EYoung

Remember that you are not printing "lines" of text.  You are rendering a graphic and have to track "lines" in this case yourself.  I would suggest a report variable you reset at each page break and increment with each printed line by putting a dummy field at the end of each possible printed line, either header, footer or detail.  If the contents of the formula that increments the counter produces a space character on each possible line, you should be able to check that counter to see if you should apply the color effect.  You will have to exercise restraint in your choice of fonts - use only one with one size throughout or your effect will not look good.
0
 
LVL 7

Author Comment

by:EYoung
ID: 6267300
Thanks.  That works.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Expression in Crystal Reports 19 51
across tab - Distinct Count - Crystal Reports 2 76
Crystal Reports--SubReport 3 48
Conditional Page Breaks Based On Grouping 1 23
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now