change print order of subreports
?I have a report that consists of a detail line with 5 subreports on it.
Each subreport is a page of the report. The report printed fine until
this year when I had to add a new page (subreport) to it. I created the
subreport with no problem. This new subreport is actually page 3 and not 5
of the report. So when the user prints the report, page 3 (new subreport)
is printing last, as page 5. I've tried several things and nothing will
change the print order. Has anyone done this before? If so, how do I get
it to print in the correct order...other than deleting the whole report
and starting over. Thanks.
--- posted by geoForum on http://delphi.newswhat.com
Each subreport is a page of the report. The report printed fine until
this year when I had to add a new page (subreport) to it. I created the
subreport with no problem. This new subreport is actually page 3 and not 5
of the report. So when the user prints the report, page 3 (new subreport)
is printing last, as page 5. I've tried several things and nothing will
change the print order. Has anyone done this before? If so, how do I get
it to print in the correct order...other than deleting the whole report
and starting over. Thanks.
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
If you are using Child style subreports, you can use the ShiftRelativeTo
property to determine how each subreport is arranged.
If you are using Section style subreports, the order is determined by the
z-order of the subreport objects in the band. You can adjust the z-order
using the SendToBack/SendBackward and BringToFront/BringForward options when
right clicking over the subreport objects.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
--- posted by geoForum on http://delphi.newswhat.com
How do I know if this works? Should I visibly be able to see something
when I click on the bringtofront? I did what you said and I can't see any
difference. Should the tabs on the bottom change order?
Thanks.
--- posted by geoForum on http://delphi.newswhat.com
You can use the Report Tree (select View | Toolbars | Report Tree.. from the
designer main menu) to see the current z-order of components on your report.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
--- posted by geoForum on http://delphi.newswhat.com