Generating a Report Without a Database
My reporting app generates a map and text data on a single page for
each record in the database table. However, sometimes I just want to
generate the map that is on the display screen, and not access the
database table. The way I have approached this, is to set a filter on
the database so that only the first record is selected (which I never
used), then in the detail print I load the screen image instead of
building from the database.
This does work, but seems kind of clunky... and slow... since all the
records in the database will be accessed. Is there a better way to
"turn off" using the database (for lack of a better word) so that I
can use the same report format for a non-database print.
TIA
each record in the database table. However, sometimes I just want to
generate the map that is on the display screen, and not access the
database table. The way I have approached this, is to set a filter on
the database so that only the first record is selected (which I never
used), then in the detail print I load the screen image instead of
building from the database.
This does work, but seems kind of clunky... and slow... since all the
records in the database will be accessed. Is there a better way to
"turn off" using the database (for lack of a better word) so that I
can use the same report format for a non-database print.
TIA
This discussion has been closed.
Comments
Try disconnecting the datapipeline from the report. Then set
Report.AutoStop to true so that it only prints one detailband. The detail
band should still fire its events and you should be able to load the screen
image to print it once as you are doing for a databased report.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com