multiple reports in the same preview
I am using the report preview on a tabsheet in my application. The user
defines the fields to report about on one tab, the printer setup on another
tab, and the preview shows on the last tab. If I do a preview, then go back
and redefine the report fields, than look at the preview again I get both
the new report and the old one. They keep stacking up as long as I don't
leave the dialog.
How can I programmatically clear the preview before each pass? I only wish
to show the current report.
TIA!
Tom.
defines the fields to report about on one tab, the printer setup on another
tab, and the preview shows on the last tab. If I do a preview, then go back
and redefine the report fields, than look at the preview again I get both
the new report and the old one. They keep stacking up as long as I don't
leave the dialog.
How can I programmatically clear the preview before each pass? I only wish
to show the current report.
TIA!
Tom.
This discussion has been closed.
Comments
report component? You may want to try using the TppViewer component and
call Report.PrintToDevices.
You could try calling TppViewer(ppReport1.PreviewForm.Viewer).Reset; (uses
ppViewr)
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com