Page 1 of 2

Stimulsoft Reports.Net (2012.2) Hierarchical Band

Posted: Mon Feb 03, 2014 4:23 pm
by DanDusek
Hi,
i am creating a report which contains Stimulsoft Reports.Net (2012.2) Hierarchical Band.
This report is finally rendered on a aspx-page.

Problem:
how to show items with no children first in the Hierarchical Band right after the root?

E.g. like this:

Root----Child1
Root----Child2
Root----Child3
Root----Child4----Child4.1
Root----Child4----Child4.2
Root----Child5----Child5.1
Root----Child5----Child5.2
Root----Child5----Child5.3

Child 1,2,3 should appear first right after the Root because they do not have any children.
And after Children1,2,3 then the other children should be rendered (bacause they have some children).

Is it possible to render the Hierarchical Band that way?
Data are in Data-Set and I sorted corresponding data-table already but this didn't help.

And my second question:
Is it possible to use collapsing functionality in Hierarchical band on apsx-page?
I have followed the examples but this did not work, in browser no collapsing buttons were shown.

Thank you for advice, kind regards Dan Dusek

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Posted: Tue Feb 04, 2014 5:48 am
by Alex K.
Hello,

Can you please send us your report with test data for analysis.

Thank you.

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Posted: Tue Feb 04, 2014 8:08 am
by DanDusek
Hi,
here report and sample data.
Kind regards, Dan Dusek

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Posted: Wed Feb 05, 2014 6:48 am
by Alex K.
Hello,

Can you please send us a test data which we can use in your report.
As a way, you can use the following code in BeforePrint event of page for save data as .xml:
Info.DataTable.DataSet.WriteXmlSchema("");
Info.DataTable.DataSet.WriteXml("");

Thank you.

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Posted: Wed Feb 05, 2014 10:32 am
by DanDusek
Hi,
sending xml and xsd.
Kind regards, Dan Dusek

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Posted: Thu Feb 06, 2014 11:46 am
by HighAley
Hello.

Please, set the Sort property of the HierarchicalBand to IsEqual.

Thank you.

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Posted: Thu Feb 06, 2014 12:31 pm
by DanDusek
Hi,
good idea to sort according to IsEqual, so the changed values would be at the very top, but it does not let the items without children apper first. Ok, now I sorted according 'Description' and it looks well, I'll let it be sorted this way.

And what about the collapsing functionality? Would it be possible to make it working when report resides on aspx page?

Thank you!
Kind regard, Dan Dusek

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Posted: Thu Feb 06, 2014 12:34 pm
by HighAley
Hello.

Could you specify how do you place the report on the aspx page?

Thank you.

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Posted: Thu Feb 06, 2014 12:41 pm
by DanDusek
Like this:

Code: Select all

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent" >
	<cc1:StiWebViewer ID="StimulsoftWebViewer" runat="server" RenderMode="UseCache" Height="1024" Width="1140" ScrollBarsMode="true" 
		BorderStyle="None" PageBorderSize="0" ShowDropDownMenu="True" Theme="Office2007Silver" BackColor="White" ToolbarAlignment="Center" 
		ShowPageShadow="False" ShowPageBorders="False" /> 
</asp:Content>
... and im code behind then:

Code: Select all

StiReport report = new StiReport();

report.Load(fullpath);
report.RegData(reportData);

StimulsoftWebViewer.Report = report;

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Posted: Fri Feb 07, 2014 7:00 am
by HighAley
Hello.

Unfortunately, StiWebViewer does not support collapsing.

Thank you.