?
Solved

How display greybar color effects?

Posted on 2001-07-09
2
Medium Priority
?
516 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 200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

800 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