I am creating a report that has 2 sub-reports,
First Subreport - top to middle main report, 12 rows max, and rows after 12 will be on next page. I used the "Next Page After" with Formula: (Remainder(GroupNumber, 12) = 0 And Not ONLASTRECORD).
The Second Subreport will have same requirement, 12 rows max and rows after 12 will be no next page.
My problem I cannot make the second Subreport display at middle of page on 2nd page.
If I put the 2 Subreports in same section the the data of both subreports is displayed at top of page (overlapping).
If I put the 2 subreports in different Sections (Report Footer a and b). The Second Subreport is starting after last page the First SubReport.
Report Design:
enter image description here
Thanks.
Best Regards,
Dennis
Right-click the 2nd subreport object,
select the menu option of 'Format Subreport...' and,
under the 'Common' tab, turn of the option of 'Keep Object Together'.
Related
I am using Jaspersoft Report to compile a report that consists of a multitude of subreports.
They all have 1 Title and 1 Detail Band.
I manage to fit most of them onto one page, so up until now it was enough to put them in the Main Reports Detail/Summary Section, put a Page-Break underneath and put the next one there.
But since my Objects should be visible when working with the file, I inevitably ran out of space on the first Detail-Band of my Main Report, and added another.
The first subreport in the new Detail Band contains a list, the size of which I have no control over, since it's not a chart, the object I usually work with. So it now spans ~ 2 1/4 page.
I put it in the main Report, it creates it's own page just fine (starts on the page after the subreport before it ended) but when I put a page break afterwards, and add my new Subreport below, what happens is that the title of the new subreport is printed right into the 2nd page of the List, while the Detail of the new Report is printed on the page after that.
So Basically:
Design:
Break
Subreport 3 Pages
Break
Subreport 1 Page
Preview:
Break
Subreport
Page 1
Page 2 Title of the next Subreport overlapping the List
Page 3 Details of the next Report overlapping the list
Page 4 Empty Page
The brute force approach of "just put the newer Subreport onto a new Detail-Band solved the issue. Still would be nice to know a less dirty method.
I m generating Bill report using crystal report in VS2008..in that, details section size is dynamic.
i.e. depend on number of records, it changes. so if I've 10 records the report view is full page that is k ..but if i have 2 records in details sections, then whole page footer section getting stick to details page..so whole alignment is getting change
so is there any way to set details section fixed i.e. for 10 records and if records exceed more, then all records on same page and remaining data will go on next page i.e report footer,page footer.
Is there any setting in crystal report
Ok, i can give you some tips on how you can approach your desired outcome.
The Crystal Reports engine has the following characteristics.
The Report Header appears on the top side of the first page only.
The Page Header appears on the top side of every page (on the first page it is under the Report Header).
The Report Footer appears only once, on the bottom side of the detail section on the last page.
The Page Footer appears on the bottom side of every page.
There is a capability in every section that allows you to suppress it if you don't need it. It can be done by right clicking the bar of the section that you want to suppress and pressing the suppress choice from the menu that will appear.
Consider the 2 following cases.
If you want to achieve the first case, change the height of the Page Footer to a value that will allow only 10 records to show on the Details section, include all the footer information in the Page Footer and suppress the Report Footer. If you want the same result but with the footer information appearing only on the last page, right click the bar of the Page Footer and select Section Expert. From there, press the x+2 sign next to the Suppress CheckBox and add the following code there.
if pagenumber <> totalpagecount then
true
else
false
If you want to achieve the second case, change the height of the Page Footer to a value which will allow only 10 records to show on the Details section and include all the footer information in the Report Footer section.
In both cases the Report Header is suppressed.
Go to Section Expert
select report footer
Tick the Print at bottom page and Keep together option
Problem will be solved
First of all fix height detail section by right click on detail section Detail Section->Section Expert click on paging Tab->Check in New Page Before checkbox and beside it (x+2)button write formula-> (Suppose you want 8 rows to display in your report per page and additional rows(9th row,10th row and so on... to another page) IF Remainder (RecordNumber, 9) = 0 THEN TRUE ELSE FALSE so now your height is fixed.. and for blank rows suppose 2 records/rows are coming from data table/data source then from 8 fixed rows , 6 rows should be blank rows for that.. design your detail section with fields and keep report footer(section 4) blank with with some spaces(i want 8 rows fixed so keep size of 8 rows blank assuming in report footer) and put footer details in your section 5(page footer)..
if your header or footer is not visible on another page then put all header parts details in page header and footer details in page footer
:)
I have develped a crystal report. It must have 4 pages as default and additional 2 depending on the condition.
When the condition is success its showing all the text objects in 5th and 6th pages correctly, but in else condition, its displaying 4 pages with appropriate data and empty pages having page header in last 2 pages.
How to suppress/completely hide last 2 pages?
Pls advice
Thanks
Your best bet would be to create a report with multiple report footer sections. You can then either adjust each report footer section to be 1 page high and add the relevant conditions and objects or alternatively add a subreport to each report footer section containing the fields/logic.
I would probably create 8 report footer sections (2 being blank) then decide whether to show the 2 blank ones or the 2 with relevant objects.
In section expert, next to suppress use the below formula
if pagenumber in [99,100] then true
else false
Note; Assuming 99 and 100 are last 2 pages of the report.
My Requirement is to show two sub reports in a Report. What I am doing is, I have created two sub-reports and put that into a report.
But the issue is that, both the sub reports are growing (i.e. their height is not static as the number of records are variable). I just want the second sub=report to appear after the end of first sub-report. How can I achieve the same?
You can use the option "Position Type" by selecting "Float" as the value. So based on the first reports size the second one will be adjusted.
Regards,
Raveendra Mutyala
You could put the second subreport inside the first subreport, in the page footer. The footer moves down when the detail band grows, so the subreport should always end up underneath the content of the first subreport.
Cheers,
Alexander
Try to add detail band as many as your subreport to your main report (You can right click the detail band and choose "Add another detail band"). And place each subreport on every detail band that you make.
Detail band have ability to shrink and grow depend on your data row and it will fit nicely to your report.
I've created a new report using crystal reports 8.5.
In it, I've used 3 sub reports and they are positioned in main report vertically.
My question is, How can I stop overlapping them with each other and also with the down border of the main report?
thank you
If you split the section they're in into 3 sections (eg, Report Header can divide into Report Header a, Report Header b and Report Header c), and place one subreport in each, the sections will expand to fit their contents in and the subreports should no longer overlap.
One solution that I found is to do following:
Right click on the details page and choose "Section Expert..."
In the opened dialog box Sections column click on
the Details(preferred) or other section and click on Insert button above.
In the newly inserted section add your new sub report.
Thanks