Checklist-type printing
A program that I am writing has several Checklist-type edit fields. The
checked items for each list are stored in a dbmemo and retrieved at
runtime. The user also have the ability to add and remove item from the
list.
I need to be able to print the check list(s) as part of the report,
showing the checked and unchecked items (as displayed on the data entry
form).
I guess that the only way to accomplish the look of a checklist box in a
report is to dynamically build each "checklist" before the report is run.
I there any simpler way of doing the above task?
TIA
Bill
checked items for each list are stored in a dbmemo and retrieved at
runtime. The user also have the ability to add and remove item from the
list.
I need to be able to print the check list(s) as part of the report,
showing the checked and unchecked items (as displayed on the data entry
form).
I guess that the only way to accomplish the look of a checklist box in a
report is to dynamically build each "checklist" before the report is run.
I there any simpler way of doing the above task?
TIA
Bill
This discussion has been closed.
Comments
I'm a little unclear about how you are initially planning to add this check
list to your report. If you have a boolean field available telling you
whether an item is checked or not, you should be able to use that to control
the TppCheckBox component on your report, without the need to dynamically
create the entire list.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks for the Reply Nico.
To summarize what I am doing -
The user (at edit time) has the ability to add/delete/edit items in a
standard Checklist box, and they can also check and uncheck items in
that list.
Since I don't know (until I print the report) what items may be in the
checklist, I have to dynamically create the Checklist when the report is
created. I guess in Report Builder I would create a CheckBox and a
TppLabel for each item in the list. I was hoping this had been done
before, since I will obviously have to space each item (CheckBox and
label) both vertically in the band or region, and in columns across the
band.
The report basically simulates a paper report where the user would check
items in a list. And I was hoping to automate this process, since I
have several of these Checklist type things to create.
Bill
Rather than create the entire report dynamically, you could perhaps place
the entire list inside a TStringList or some other form of storage then
connect a JITPipeline to your report and traverse the data just like you
would traverse data in a database. This is actually very simple. When your
users have selected the list they desire to see, simply add all the values
to a string list and connect it to your report with the pipeline. See demo
136 located in the RBuilder\Demos\1. Reports\... directory for an example of
how to do this (dm0136.pas).
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico,
I've used a JIT Pipeline before as the datasource for a complete report,
but I hadn't thought about using it in that context.
Thanks for the idea.
Bill