Printing a separate report on a different form as a sub report.
I have a report on a form by itself. We'll call it UniversalSubReport.
This report uses a JITPipeline. I want to be able to call this report as a
sub report from many of my other reports which use DBPipelines.
I've tried doing the following but I just get a blank page.
Add the form to the uses clause of the calling report's form.
Create the form.
Assign the UniversalSubReport to the Subreport's report property using:
ppSubReport1 := TppSubReport(dmRbUniversalSubReport.rbMain);
ppSubReport1 is in the GroupFooterBand1 area with another SubReport (which
is on the calling form and it prints).
What is the best way to handle this type of report. We want to be able to
preview it so the user can be sure this is what they want to print.
Thanks
Mark Greenhaw
OneDomain, Inc.
This report uses a JITPipeline. I want to be able to call this report as a
sub report from many of my other reports which use DBPipelines.
I've tried doing the following but I just get a blank page.
Add the form to the uses clause of the calling report's form.
Create the form.
Assign the UniversalSubReport to the Subreport's report property using:
ppSubReport1 := TppSubReport(dmRbUniversalSubReport.rbMain);
ppSubReport1 is in the GroupFooterBand1 area with another SubReport (which
is on the calling form and it prints).
What is the best way to handle this type of report. We want to be able to
preview it so the user can be sure this is what they want to print.
Thanks
Mark Greenhaw
OneDomain, Inc.
This discussion has been closed.
Comments
Take a look at the following example of assigning report objects from
separate forms to subreport objects in a main report.
http://www.digital-metaphors.com/tips/SubReference.zip
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com