Page 3 of 3
No SubReport printing if its DataTable has no rows.
Posted: Fri Aug 12, 2011 8:07 am
by LukasT
HighAley wrote:
LukasT wrote:Ok... but container is sorting subreports by name... not in original sequence...
In Group Header you set sort direction. It is necessary for correct grouping. If you need sorting in another sequence you can set it in DataBand.
... I thought sequence of subreport components in DataBand after theirs selection and setting docking to Top ... not data sorting. Try to select all subreports and set up docking to Top .... sequence will be changed...
No SubReport printing if its DataTable has no rows.
Posted: Fri Aug 12, 2011 9:02 am
by HighAley
Hello, Lukas.
LukasT wrote:... I thought sequence of subreport components in DataBand after theirs selection and setting docking to Top ... not data sorting. Try to select all subreports and set up docking to Top .... sequence will be changed...
If you need subreports dock in different order, please, change its order in Report Tree. You can do it in Layout menu by pressing Move Backward and Move Forward buttons.
Thank you.
No SubReport printing if its DataTable has no rows.
Posted: Fri Aug 12, 2011 9:35 am
by LukasT
.... that is not helpful... we have script which is converting reports from our old (more than 2000 reports) format to stimulsoft format. Subreports were placed in DataBand with absolute top position and that is surprise for me, that stimulsoft is not respecting this order of components. Sorting by name doesn't have sence when components had top position given...
... but what shell I do... I must to do some workaround in the script...
No SubReport printing if its DataTable has no rows.
Posted: Tue Aug 16, 2011 7:41 am
by HighAley
Hello.
LukasT wrote:.... that is not helpful... we have script which is converting reports from our old (more than 2000 reports) format to stimulsoft format. Subreports were placed in DataBand with absolute top position and that is surprise for me, that stimulsoft is not respecting this order of components. Sorting by name doesn't have sence when components had top position given...
... but what shell I do... I must to do some workaround in the script...
We can provide to you two way to workaround.
1. You can get a component collection using next code:
Code: Select all
StiBand band = report.GetComponentByName("YourBand");
StiComponentCollection components = band.Components;
and then change order of component as you need.
2. You can put each subreport on different Child band.
Sorry for the delay with response.
Thank you.