This is a migrated thread and some comments may be shown as answers.

Report 2009 Q3 reset reportbook page count

2 Answers 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alfred
Top achievements
Rank 1
Alfred asked on 24 Jul 2011, 04:58 PM
I have referred to the ReportBook (Q2 2011), that it can be done by


reportBook.Reports(2).PageNumberingStyle = PageNumberingStyle.ResetNumberingAndCount

My version is 2009 Q3.  How can I do this?

I have mutliple reports which are added to a report book.
For instace,
Report A: total pages: 3
Report B: total pages: 2
Report C: total page: 1

I want to show like this:
Report A: page 1 of 3
Report B: page 1 of 2
Report C: page 1 of 1

ie. the report will reset the page count.

If it cannot be achieved with my version, then may I ask how to :
add "Continue" at Report A, page 1 and 2, then Total Page: 3
add "Continue" at Report B, page 1, then Total Page: 2
add "Continue" at Report C, Total Page: 1


Thanks.

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 25 Jul 2011, 10:04 AM
Hello Alfred,

The functionality you ask for has been added in a later version (Q1 2010) of the product and there are no workarounds that we can offer other than upgrading to a version that supports it.

Sorry for the inconvenience.

Greetings,
Steve
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Alfred
Top achievements
Rank 1
answered on 27 Jul 2011, 04:05 PM
Hi Steve

Actually I find another way to meet my requriements.  Certainly it has limitations.  I know there is PageEventArgs but I cannot find ways to "play" with that. 

Anyway, let me describe how I do it (although most of your customer may have their RAD Controls upgraded.)

My requirements:
. have Report A, Report B, Report C which will "combine" in a single report, I use the ReportBook
. want to display the page numbering as follows:
Report A: Page 1 of 3 etc
Report B: Page 1 of 2 etc
Report C: Page 1 of 3 etc.

Certainly the number of pages are not fixed.
. Redesign the reports and note down the height of each section and each fields cannot be "grow" or "shrink",
. add a textbox to show the number of pages in the footer
. Compute the number of records per page per group
. In the report needdatasource event, compute the number of page by computing the heights difference
. put the value of pages into the textbox

Since everything has a fixed height, I am able to compute the number of pages.  In practice, my reports do have some difference in the last page, I have added a sub routine to compute the no. of records which can be printed in the last page.

However, it may take me some hours more, I am certain that I can also compute the number of pages per report even I do not fixed the height of the records in the group section (although it may require to use fonts.like courier etc.).

I hope that it may solve your customer which also use old version RAD Controls.








Tags
General Discussions
Asked by
Alfred
Top achievements
Rank 1
Answers by
Steve
Telerik team
Alfred
Top achievements
Rank 1
Share this question
or