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

Adjusting report dynamically

2 Answers 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Eugene
Top achievements
Rank 1
Eugene asked on 17 Sep 2009, 03:26 AM
I am using Version 2.9.8.1209.

I would like to generate an invoice report. In the report, I have my main report with 3 sub reports in the middle, meaning main report data then follow with 3 sub reports and then main data report data after that in the main report like below.

Date: 23rd Nov 2009

To : CEO

Sub Report 1
Sub Report 2

Sub Report 3

Total Amount : Five Hundred and sixty only


---------------------------------
Eugene
Marketing Officer

i would like to be able to control that if at the end sub report 2 there is only left a certain amount of space on that page, automatically the sub report 3 should move to the next page and not right after the sub report 2 on the same page. this is because also there are times that the signature section will end up at the top of the next page which is not acceptable for an invoice. i would like it to know when to move to the bottom of the page.

Currently now i have no idea on how to go about this or go around it. please advice. thanks

2 Answers, 1 is accepted

Sort by
0
Chris Gillies
Top achievements
Rank 1
answered on 17 Sep 2009, 08:44 AM
What is important in your scenario is whether this is a windows forms or web application. If the latter (web), then the subreports would always be on the same page - KeepTogether is always true for the detail section where the subreports are placed (refer to this article: http://www.telerik.com/help/reporting/designing-reports-considerations-html.html). I guess in an invoice scenario, the subreports would be shown only once because you're showing data for specific client/company and in such case you might create three unbound groups and place the subreport in separate groups.
If it is a win application, then play around with the KeepTogether property of the detail section and subreport items to achieve that.

Cheers
0
Eugene
Top achievements
Rank 1
answered on 17 Sep 2009, 09:07 AM
I am running the application on web. if based on the article, that would mean that i cannot adjust the layout of the report.

placing them into groups am i able to control their layout?

will i be able to detect until which line of the page the report 1 has stopped and then decide whether to set report 2 to start on a new page or right after report 1? it will be best if i am able to detect if report 2 will stop where in the next page before deciding to set report 2 to the same page or next page. i know this will mean that the reports will be extremely dynamic and smart. will i be able to do this or i will just have to live with the set layout?

this is what my boss wanted but if is not possible, please tell me so that i can conclude to my boss that it is possible or not. if not possible, i guess that all i can do is allow the user to export it into a file and readjust the allignment themselves.


Tags
General Discussions
Asked by
Eugene
Top achievements
Rank 1
Answers by
Chris Gillies
Top achievements
Rank 1
Eugene
Top achievements
Rank 1
Share this question
or