Page 1 of 2

Segment number

Posted: Thu Oct 17, 2013 7:52 am
by Summit
Hi everyone,
I have a long report that consists of several width segments and I need to get the segment number for each of them. But I didn't find any variables or properties that could help me with that. How to do this?

Re: Segment number

Posted: Fri Oct 18, 2013 8:34 am
by Alex K.
Hello,

Can you please describe your issue in more details.

Thank you.

Re: Segment number

Posted: Mon Oct 21, 2013 1:50 pm
by Summit
Well, I have a single-segment page that stretches to several segments during report compilation (the table on the page stretches). And I need each segment to be numbered. But the Text put on the first segment in the template leaves the number on the first segment only and I haven't found a way to reach for other segments of the page. It looks very strange because in the viewer each segment is numbered (semi-transparent letters in the middle of the page).

Re: Segment number

Posted: Tue Oct 22, 2013 6:25 am
by HighAley
Hello.

You have one page that is split to two pages. If you need to show page number on each segment, you should use next expression on the first segment {PageNumber} and next expression on the second segment {PageNumber+1}

Thank you.

Re: Segment number

Posted: Tue Oct 22, 2013 7:09 am
by Summit
The point is that there's only one segment in the template. The other segments (there may be more than 2) appear at runtime by the table stretching, so it's not possible to access them from template. I thought there would be something like segments property in the report class, but I didn't find any.

Re: Segment number

Posted: Tue Oct 22, 2013 10:03 am
by HighAley
Hello.

We are sending you a sample report which shows how to add page number for such report.
UnlimitedWidthWithPageHeadersAndFooters.mrt
(27.65 KiB) Downloaded 137 times
You should look at the Before Print and After Print events of the Page and Before Print event of the Page Header. Also the Number Of Pass property of the report should be set to Double Pass.

Thank you.

Re: Segment number

Posted: Wed Oct 23, 2013 9:43 am
by Summit
I did everything in the way you told but it won't help: the bottom text (see the template attached) is printed on the first segment only.

Re: Segment number

Posted: Wed Oct 23, 2013 1:36 pm
by HighAley
Hello.

Sorry, but there is only one page in the report that you sent us.

Thank you.

Re: Segment number

Posted: Thu Oct 24, 2013 11:11 am
by Summit
Yes, and there has always been. I told you before that there is one-segment page that stretches to multiple segments at runtime, it's written in the preceding posts.

Re: Segment number

Posted: Fri Oct 25, 2013 8:18 am
by HighAley
Hello.

We need to see sample where the stretched report will be with no Page Footer to help you solve this issue.

Thank you.