Subreports & Panels

Stimulsoft Reports.NET discussion
Post Reply
forlists
Posts: 5
Joined: Mon Jan 18, 2010 5:39 am

Subreports & Panels

Post by forlists »

Dear Edward,

I have a report with a lot of Panels and some subReports on the Databand with the fixed sequence.
The DockStyle of panels and subReports is TOP.

Databand
Panel1 DockStyle = top
Panel2 DockStyle = top
subReport1 DockStyle = top
subReport2 DockStyle = top
Panel5 DockStyle = top
Panel6 DockStyle = top
Figure 1 (required)

but i can not do it, because when i try to set the DockStyle of Panel5(Panel6) to the top, it(they) jump automatically to the front of subReport1.

Databand
Panel1 DockStyle = top
Panel2 DockStyle = top
Panel5 DockStyle = top
Panel6 DockStyle = top
subReport1 DockStyle = top
subReport2 DockStyle = top
Figure 2 (bad)

I tried to place two panels (panel3 & Panle4) into between Panel 2 & Panel5 and then place the subReport1 on the Panel3 , subReport2 on Panel4. It does not work, at this time I can not set the MasterComponent of the subReports’ DataBand.
Databand
Panel1 DockStyle = top
Panel2 DockStyle = top
Panel3 DockStyle = top contains subReport1
Panel3 DockStyle = top contains subReport2
Panel5 DockStyle = top
Panel6 DockStyle = top

How can i figure it out?

Thank you.
ps: sorry for my english:)
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Subreports & Panels

Post by Edward »

Hi

You can use Order property to change position of docking components. These commands are available in the context menu as well as in the toolbar.

Thank you.
forlists
Posts: 5
Joined: Mon Jan 18, 2010 5:39 am

Subreports & Panels

Post by forlists »

Dear Edward,
I see, but it does not nothing.
How can i change these orders directly.

Databand
Panel1.DockStyle = Top;
Subreport1.DockStyle = Top

When i drop the Panel2 to the Databand and set Panel2.DockStyle = Top, it jump backward
Panel1.DockStyle = Top;
Panel2.DockStyle = Top;
Subreport1.DockStyle = Top

Right mouse button click on Subreport1 and on Popup menu select Order/MoveBackward, Subreport1 does not move.
The order what i want:
Panel1.DockStyle = Top;
Subreport1.DockStyle = Top
Panel2.DockStyle = Top;

How can i do it?


Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Subreports & Panels

Post by Edward »

Hi

Could you please attach here in this topic your report template (.mrt file)?

Thank you.
forlists
Posts: 5
Joined: Mon Jan 18, 2010 5:39 am

Subreports & Panels

Post by forlists »

Hi,
You can reproduce this bug with your demo sample.
Open the Master-DetailWithSubReports.mrt report.
Change
Text17.DockStyle = Top; //{Categories.CategoryName}
Text18.DockStyle = Top; //{Categories.Description}
SubReport1.DockStyle = Top;

then drop the Panel1 to DataBand1 and set Panel1.DockStyle = Top;
You will get:
Text17.DockStyle = Top; //{Categories.CategoryName}
Text18.DockStyle = Top; //{Categories.Description}
Panel1..DockStyle = Top;
SubReport1.DockStyle = Top;

The order what i want is
Text17.DockStyle = Top; //{Categories.CategoryName}
Text18.DockStyle = Top; //{Categories.Description}
SubReport1.DockStyle = Top;
Panel1..DockStyle = Top;

In my report, i have a lot of panels and some subReports on the Databand with fixed order.
I need these panels, because sometime i have to hide some of them or change height of them according to the task.


Please help me, my boss is very angry :(. I asked him to by your report.

How can i send attachment here? :)

Thank you.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Subreports & Panels

Post by Edward »

Hi

Thank you for the steps provided, the problem is clear now.

We will let you know about our progress.

Thank you.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Subreports & Panels

Post by Ivan »

Hello,

The problem is solved.
The patch will be available in the next prerelease build.

Thank you.
Post Reply