Filling with blank rows
Hi,
RB 6.03, D6.
I have a report like this, driven by data pipeline.
HEADER
------------ (top line)
Detail line 1
------------ (separator line)
Detail line 2
------------ (separator line)
etc
------------ (bottom line)
FOOTER
If there are fewer detail lines than fill the page, the
end-user wants the page filled with blank detail rows,
with separator lines, down to the top of the footer.
I would prefer to do this without extra code in my program,
because the report template is loaded dynamically at
run-time, and there are several report formats, only 1 of which
needs the blank lines. The ideal would be to generate the blank
lines by changing the report template only, if necessary with
RAP commands.
Please can someone help me?
Many thanks,
Edward Benson.
RB 6.03, D6.
I have a report like this, driven by data pipeline.
HEADER
------------ (top line)
Detail line 1
------------ (separator line)
Detail line 2
------------ (separator line)
etc
------------ (bottom line)
FOOTER
If there are fewer detail lines than fill the page, the
end-user wants the page filled with blank detail rows,
with separator lines, down to the top of the footer.
I would prefer to do this without extra code in my program,
because the report template is loaded dynamically at
run-time, and there are several report formats, only 1 of which
needs the blank lines. The ideal would be to generate the blank
lines by changing the report template only, if necessary with
RAP commands.
Please can someone help me?
Many thanks,
Edward Benson.
This discussion has been closed.
Comments
Below is a link to a demo that performs this task using RAP pass-thru
functions. This example uses draw commands in RAP to display empty lines
below the end of the detail band. There is more information on how to use
and create pass-thru functions in the ReportBuilder Developer's Guide.
http://www.digital-metaphors.com/tips/RapDrawCommands.zip
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks, the sample code is exactly what I needed.
(The sample creates extra lines for handwritten notes,
which is exactly what my addional lines are used for.)
After you posted your reply, I finally bought the upgrade
from RB ent V6.03 to RB ent V7.02.
Now, my suggestion is, the Draw Commands within RAP
are so useful, you should build them into the RAP without
the need for special modules.
Regards,
Edward Benson.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com