Child window on next page

Stimulsoft Reports.NET discussion
amandus99
Posts: 25
Joined: Fri Oct 16, 2009 7:53 am

Child window on next page

Post by amandus99 »

So now I have a new problem, my report is designed in portrait mode. One page has to be in landscape mode, the databand on the landscape page has a child databand, which should be shown on the next page which is a portrait page again.

Is it possible to solve this problem? I hope you understand my description.

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

Child window on next page

Post by Edward »

Hi,

You could change the page size in the BeforePrintEvent of the page.

Thank you.
amandus99
Posts: 25
Joined: Fri Oct 16, 2009 7:53 am

Child window on next page

Post by amandus99 »

Hi,

in the attachment you can see my trial. I set the After print event as:

Code: Select all

if (PageNumber % 2 == 1)
	Page2.Orientation = StiPageOrientation.Landscape;
else
	Page2.Orientation = StiPageOrientation. Portrait;
but the pages aren't shown as expected.

The second problem with the pie chart an the colors is in the attachment, too.
The colors of the pie pieces are set by conditions and shown right, but the colors in
the Legend aren't affected, why?


Thanks
Attachments
273.orientationAndPie.zip
(298.87 KiB) Downloaded 158 times
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Child window on next page

Post by Edward »

Hi

The issues do exists, thank you for the bug report.

We have added the feature with different legend colours in our to do list.

We will let you know about our progress.

Thank you.
amandus99
Posts: 25
Joined: Fri Oct 16, 2009 7:53 am

Child window on next page

Post by amandus99 »

Hi,
then I have to disable the legend, but could you say something about the orientation "bug" why are the first two pages have the same orientation in my example?
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Child window on next page

Post by Andrew »

Hello,

The problem is fixed and the patch will be available today in the prerelease build.

Thank you.
amandus99
Posts: 25
Joined: Fri Oct 16, 2009 7:53 am

Child window on next page

Post by amandus99 »

@Andrew
Which problem do you mean? This one with the legend?


@Edward
I don't know how to set the page orientation for my child bands.
My case:

I have a report with for example 9 pages, then page 10 has a databand with 2 children. Child1 should be on page 10 and child 2 should be on the next page in portrait mode, this should be repeated for all content of the databand from page 10.
I set the property New page before from child2 to true, but how to set the page orientation for this child band??

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

Child window on next page

Post by Edward »

Hi

Both problem with Legend and PageOriention will be resolved.

Could you please explain the way you expect to see ChildBand in another orientation.

Do you need to change coordinates of elements in the ChildBand somehow depending of the Page Orientation?

Thank you.
amandus99
Posts: 25
Joined: Fri Oct 16, 2009 7:53 am

Child window on next page

Post by amandus99 »

Thank you for the fast help.
The databand is empty with no content, it has only a datasource and it has two childbands, the first child should be shown in landscape mode and the second child of the databand should be in portrait mode but shown on the next page, so that the all childs of the databand are shown like this

Page1 - portrait
Page2 - portrait
Page3 - portrait
...
PageN - portrait
PageN+1 :Databandentry1 - child1 -landscape
PageN+2 :Databandentry1 - child2 -portrait
PageN+3 :Databandentry2 - child1 -landscape
PageN+4 :Databandentry2 - child2 -portrait
PageN+5 :Databandentry3 - child1 -landscape
PageN+6 :Databandentry3 - child2 -portrait
PageN+7 :Databandentry4 - child1 -landscape
PageN+8 :Databandentry4 - child2 -portrait
...

in the Designer the child2 is placed on the databand page in landscape mode, but should be shown on next page in portrait mode.
If i place the child2 on e new page in Portrait mode, this child doesn't know its parent. Is it possible to tell the child, that its parent is
on the previous page?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Child window on next page

Post by Edward »

Hi

No, that is not possible.

If there is not enough place for Child band in the page, then please set the following property of the Page:

LargeHeight = true

The size of the page will be increased, but only for the Design time. This property does not affect the page size in runtime.

Thank you.
Post Reply