Stimulsoft Reports.Net (2012.2) Hierarchical Band

Stimulsoft Reports.NET discussion
DanDusek
Posts: 6
Joined: Fri Jan 31, 2014 7:34 am

Stimulsoft Reports.Net (2012.2) Hierarchical Band

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Post by Alex K. »

Hello,

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

Thank you.
DanDusek
Posts: 6
Joined: Fri Jan 31, 2014 7:34 am

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Post by DanDusek »

Hi,
here report and sample data.
Kind regards, Dan Dusek
Attachments
AuditLoggingReport.mrt
(25.58 KiB) Downloaded 194 times
SampleData.xls
(89 KiB) Downloaded 273 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Post 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.
DanDusek
Posts: 6
Joined: Fri Jan 31, 2014 7:34 am

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Post by DanDusek »

Hi,
sending xml and xsd.
Kind regards, Dan Dusek
Attachments
rep1.zip
(2.85 KiB) Downloaded 197 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Post by HighAley »

Hello.

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

Thank you.
DanDusek
Posts: 6
Joined: Fri Jan 31, 2014 7:34 am

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

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

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Post by HighAley »

Hello.

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

Thank you.
DanDusek
Posts: 6
Joined: Fri Jan 31, 2014 7:34 am

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

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

Re: Stimulsoft Reports.Net (2012.2) Hierarchical Band

Post by HighAley »

Hello.

Unfortunately, StiWebViewer does not support collapsing.

Thank you.
Post Reply