Detail Size
Hello
I'm creating invoices in my application. I would like to draw lines from the
last line of the invoice to the bottom of the page. The thing is that the
Detail Band does not draw after the last record (and it's a normal
behavior). Is there a way to draw the summary band just over the footer band
and the draw lines dynamically from the last line of the detail to the top
of the summary.
I thought about resizing the summary band and some lines in it, but how to
find the correct height. This height should be the space betwwen the last
detail and the top of the footer.
It's something difficult to explain as my english is not perfect. If you
don't understand my question, I can post two pictures, one showing what I
get wit a report, and one showing what I need.
As always, Thanx a lot in advance.
Julien
I'm creating invoices in my application. I would like to draw lines from the
last line of the invoice to the bottom of the page. The thing is that the
Detail Band does not draw after the last record (and it's a normal
behavior). Is there a way to draw the summary band just over the footer band
and the draw lines dynamically from the last line of the detail to the top
of the summary.
I thought about resizing the summary band and some lines in it, but how to
find the correct height. This height should be the space betwwen the last
detail and the top of the footer.
It's something difficult to explain as my english is not perfect. If you
don't understand my question, I can post two pictures, one showing what I
get wit a report, and one showing what I need.
As always, Thanx a lot in advance.
Julien
This discussion has been closed.
Comments
summary band's PrintPosition property. If it is dynamic height, then RB
doens't natively support it, though below you'll see how a workaround can be
coded.
In order to get the lines, first try using the PageStyle band in order to
draw lines behind the other bands on the page.This would require that your
main report bands cover up the lines by using non-clear shapes.
The alternative, if this must be done dynamically, is to mimic the report
engine and create your own draw commands on the output page objects, before
the page is sent to the devices. Here are some examples showing how to draw
lines and alos aligning the summary to the bottom using draw commands.
http://www.digital-metaphors.com/tips/AlignSummaryToBottom.zip
http://www.digital-metaphors.com/tips/DrawLineOnEachSide.zip
http://www.digital-metaphors.com/tips/FillPageWithLines.zip
Also, if you want to do this from RAP, here is a demo which includes some
useful RAP pass through functions I created.
http://www.digital-metaphors.com/tips/RAPDrawCommands.zip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com