Shaded detail band & vertical lines
Greetings,
I have a report which requires every 2nd line to be shaded & vertical lines
between each data field. The way I am doing this is with a shape on the
detail band, moved to the back, & some RAP code on the
DetailBand.beforePrint which decides whether the shape should be clear or
shaded.
So far, so good, this works fine.
The header band has a number of TppLines & at run time in the
ReportOnStartPage I set the height of these lines so that they stretch down
to the bottom of the report. This also works fine.
However, I cannot change the Z-order of these lines so that they print on
top of the shape used to shade the detail band. As a result I have to put
another TppLine on the detail band, lined up with the TppLine on the header
bar. This becomes a real pain when there are a number of data fields on the
report & when tweaking the layout you have to be careful to keep the Header
lines & detail lines lined up!
Is there a better way to achieve the result I am after ?
Thanks
Steve Schoultz
I have a report which requires every 2nd line to be shaded & vertical lines
between each data field. The way I am doing this is with a shape on the
detail band, moved to the back, & some RAP code on the
DetailBand.beforePrint which decides whether the shape should be clear or
shaded.
So far, so good, this works fine.
The header band has a number of TppLines & at run time in the
ReportOnStartPage I set the height of these lines so that they stretch down
to the bottom of the report. This also works fine.
However, I cannot change the Z-order of these lines so that they print on
top of the shape used to shade the detail band. As a result I have to put
another TppLine on the detail band, lined up with the TppLine on the header
bar. This becomes a real pain when there are a number of data fields on the
report & when tweaking the layout you have to be careful to keep the Header
lines & detail lines lined up!
Is there a better way to achieve the result I am after ?
Thanks
Steve Schoultz
This discussion has been closed.
Comments
The draw commands for the lines in the header are added to the page first
and their Z-Order cannot be changed. You could create draw commands at
runtime after the report engine is finished with the page so that thier
Z-Order on the output page is how you would like it. (on top). Here is an
example of creating two lines from the last detail band down to the footer.
http://www.digital-metaphors.com/tips/DrawLineOnEachSide.zip
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com