Obviously, if you're looking at a page you want to know which group the data items belong to.
The simple solution is to set the PrintOnEveryPage property to True.
The problem is, by looking at a page you cannot tell if this is the start of the group or the continuation from a previous page.
If I can just get it to look slightly different, or display an additional text box ("continued) that would be good.
Is there some Formatting Rule I can apply here?
15 Answers, 1 is accepted
Data processing and paging are two separate processes and as explained in the Understanding Report Sections help article, the paging of a report strongly depends on the format it is rendered to, and that is why the paging is processed by the corresponding rendering extension after the report data has been processed. Thus the report item's content can't be altered based on the report's paging.
Greetings,Peter
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
In order to reproduce the reports in the same fashion as the legacy application we need this to work. Is there some way to make this work? I would even go for a hack at this point.
You may want to check this blog post - in here it is explained how to reset the page numbering per report group. This means that you can set the current page or just display continue, depending on your needs.
I hope that helps.
All the best,
IvanY
the Telerik team
HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!
"I hope <Product Owners> are aware of such limitations with Telerik where we may need to compromise? I have worked on Crystal Reports extensively several years ago, it has everything. But it seems Telerik is not that vast and competitive."
But thank you for not trying to help my situation but instead question the validity of my claims. Maybe use your 'Master' title to actually be helpful?
As already explained, the pagination in Telerik Reporting is determined long after the report has been processed. That's why there is no way to reference any page information from the report's body. Page sections are the only items that are processed during the paging of the report and where we can perform any page related calculations and access the page information.
The reason for the separation of the processing and the pagination of the reports is that we can apply different page layout strategies on the same report according to the specifics of the output media. For example we use an "interactive" layout for the displaying the reports in the viewers, a page oriented layout for printing and exporting to page oriented document formats (PDF, MS Word, PowerPoint, RTF); for rendering the reports in MS Excel we have a dedicated "grid" layout that arrange the items according to the rows and columns in the worksheet; and at the end for exporting the report to CSV we skip the layout phase as we need just the data.
Attached you may find a sample report that in accordance with the above information displays an indicator in the page header when a group continues from the previous page. In order to achieve this result we need an extra report parameter (invisible) to store the last group on the page and a conditional formatting rule that shows the "continued" indication if the first group on the current page is the same as the last from the previous page.
In order to determine the first/last groups on the current page we use the detail section as the scope for the PageExec function; in the case of the subreport with continuous groups you have to reference the detail section of the inner report.
I hope this information gives more insight into the way how the reports are processed and paginated in Telerik Reporting. If you have any further questions do not hesitate to let us know.
Greetings,
Svetoslav
the Telerik team
HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!
This is not a basic report, but has many subreports for each of the sub sections of the report, which was stated in my first post.
Should I open a ticket?
That is why: "In order to determine the first/last groups on the current page we use the detail section as the scope for the PageExec function; in the case of the subreport with continuous groups you have to reference the detail section of the inner report."
Attached you may find the sample from my previous post modified according to our understanding of your requirements: master-detail report, where the sub report contains groups that span on a couple of pages. Again the master report's page header uses the same approach to indicate the continuous groups; the only difference is that it refers the detail section of the sub report ("detail").
I would suggest to give it a try, modify it according to your needs and if you have any further questions do not hesitate to let us know.
All the best,
Svetoslav
the Telerik team
HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!
I am facing same issue while using this telerik reporting tool.
Scenario is, I have a main report that contains sub reports.
I have used group header to show title of that report so that It can be print on every page if records move to next page.
Now I want to append "[Continue]" this string with Title if records move to next page.
Title is present in Sub Report. I have a lot of reports that need this functionality. Could you please suggest a solution?
A working one will be helpful.
Regards
Sheeraz Raza
There are a couple of sample projects attached to posts in this thread. Have you tried those?
I have tried those but not fulfill my requirement. I want to append "Continued" text with Title in Group Header Section.
That Group Header Section is present in Sub Report. If records of Sub Report move to next page then Title should be printed on next page and Continued text should be appended with Title. I have attached sample of requirement. File 1st page header shows the 1st page should be like that and if next page exist than its header must be like that as shown in second attachment i.e. Next page header file. I have highlighted with red in both files. please have a look and suggest.
Thanks
Regards
Sheeraz Raza
Any update on my post? I have attached sample snapshots for my requirement.
I have 4 to 5 sub-reports. To mention each report start and its continuity, I have used a group with no field attached to it to show header of sub-report. But I am not able to append continue word with this header text. I need to this for each sub-report. Please help me out in this regard.
Thanks
As others explained above, there appear to be some limitations in the engine due to the way and the sequence of the processing and rendering. There are three different approaches with samples in this thread, which can guide you to create the desired scenario. Of course the samples will need some modifications, adjustments and fine tuning to apply to your project, which you will need to do on your end.
If you are unable to make those adjustments, then it might be better to change the overall structure of your report and not use sub-reports at all.
Thanks for your reply, These samples are not working in my case. If I send you sample report, could you please check that either it is possible in telerik reporting or not?
Thanks