Page 1 of 2
Child window on next page
Posted: Thu Nov 12, 2009 11:32 am
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!
Child window on next page
Posted: Thu Nov 12, 2009 6:08 pm
by Edward
Hi,
You could change the page size in the BeforePrintEvent of the page.
Thank you.
Child window on next page
Posted: Fri Nov 13, 2009 10:41 am
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
Child window on next page
Posted: Sun Nov 15, 2009 1:08 pm
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.
Child window on next page
Posted: Sun Nov 15, 2009 2:38 pm
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?
Child window on next page
Posted: Mon Nov 16, 2009 12:40 am
by Andrew
Hello,
The problem is fixed and the patch will be available today in the prerelease build.
Thank you.
Child window on next page
Posted: Mon Nov 16, 2009 9:15 am
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!
Child window on next page
Posted: Tue Nov 17, 2009 8:27 am
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.
Child window on next page
Posted: Tue Nov 17, 2009 9:04 am
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?
Child window on next page
Posted: Tue Nov 17, 2009 11:32 am
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.