No SubReport printing if its DataTable has no rows.

Stimulsoft Reports.NET discussion
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

No SubReport printing if its DataTable has no rows.

Post 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...
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

No SubReport printing if its DataTable has no rows.

Post 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.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

No SubReport printing if its DataTable has no rows.

Post 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...
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

No SubReport printing if its DataTable has no rows.

Post 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.
Post Reply