Solved

How display greybar color effects?

Posted on 2001-07-09
2
515 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

696 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