Using frames around subreports - jasper-reports

I am generating the reports using ireport-4.5.0,jasper-reports 4.5.0,spring mvc.I have 6 sub reports in my main report and in main report i have placed each subreport in seperate detail band surrounded with frame for having borders around the reports.If any of my detail band exceeds page 1 and displays in page2 then the frame in page1 loses the bottom border and the frame in page 2 loses the top border.It is looking very ugly.How can i set my frame to have all the four borders
Please find the below attachment.
Thanks

Related

Hide Detail Band in jasper report

Data that we get from data source is not shown in detail band. But make some processing for each of records and processing result is shown in Group footer.
So I cannot remove detail band, as it is the only place for processing individual record. But I want to hide it, making invisible.
If I use printWhenExpression, it causes not only hiding the detail band but also no processing is done for records.
What I want is just hide(making invisible and do not make any blank) but processing is done for each iteration. If possible, may I know how to do it.
Remove all elements (static text, text field and so on) from detail band and set height = 0 px at detail band property
You can either set its height to 0 px in the properties section on the right side
OR
You can Right click > delete band. (The band can later be added back if needed).

Dynamic page height to show 10 records per page with StretchWithOverflow property set to true

I have 10 records per page (9 columns) in jasper using page break property. I have set StretchWithOverflow property to true for my detail band. So, when there is more data, my table gets enlarge vertically.
My problem is, if the data is more, it is not showing 10 records per page because in jasper we give static height of the page.
If i set more height of the page, then in that case if data is less, there is lots of invalid space on the report. Please help if someone faced this issue.
Issue Resolved.
I used frame (from Pallete ctrl+shift+8) within detail band and put all my cell data into frame. So, when page height is more, the blank space display instead of my last row height go increases.
Now, my cell could not stretched due to extra height of the page.

how to fit content of reports so that we can print it on A4 size

I have created a report in ssrs 2008 r2.It is larger then the normal A4 size .So when i export the report in word i see it clearly but when i see print preview of the report in to the word its contents get cut from the right end.I think it is due to report size. Is there any way so that we can fit the content at the time of export in to the ms word so that user can clearly take a print out in A4 size.
The only way to do this is to physically decrease the size of your report when building it as there is no auto size capability in report builder.
Right click and properties on the grey back ground. Then change the size and orientation as required.
Then click on the white body and ensure the properties bar is open. Expand the size properties option and set the size of your report to reflect the previous selection.
Also don't forget to set the margins as this will effect the amount of printable space on your report.
Lastly ensure you alter the size of you fonts and report parts to fit on the size required.
I'd love to see an automatic sizing feature in the report builder for exporting.
This is because your report content size is greater than the report size.
Report size for an A4 page is 8.5*11 inch,if your content is greater than the report size then it will move the columns to the next .
Adjust the Size of each Tablix which should be less than your report size.
Select Tablix to view properties.
expand the size option and adjust width and height accordingly.
Thanks
Just increase height and width of paper size in Report builder properties. Doesn't have any sense but it works for me.
In Report Builder in the Report Properties change the width of the report so that it exceeds the width of your data. Exporting to both Word and PDF will mean that it fits the page width. You can also adjust the height so that the report fills your desired paper size.

Crystal Reports columns in details band, change direction

here's what I am trying to accomplish:
I'm working on a single page report using Crystal Reports 2008, and at the bottom right corner of a page, I have a subreport that puts 1/2" square bitmap images in details-band columns that might print one image, or up to five horizontally. Right now, they print left to right.
What I would like to do is have them start from the right side of the subreport, i.e. the first image in the right corner, and additional ones print to the left. Is there a way to make this happen? I've tried changing Section Expert > Details/Layout > Printing Direction between the options "Across then Down", and "Down and Across", no luck with that.
thanks in advance
I was able to get this approach to work:
create a subreport that contains the image in the Details section. Add a suppression formula to the Details section that reads: RecordNumber<>1;
hide all sections but the Details section
size the subreport to fit the image (1/2" width)
move the subreport to the right edge of the relevant section
link the main report to the subreport
right click the subreport and save it to your Desktop
insert a subreport and choose the one that you just saved
size it to fit the image and move it adjacent to the first one
edit the subreport, hide the non-Details section, change the Details' suppression formula to RecordNumber<>2
repeat steps 5-9 for the remaining 3 images (changing the suppression formula)
The idea is that each subreport retrieves all of the image row for the related row in main report. you suppress all rows in each subreport but the one that you want to display.

How do I make a tablix span multiple pages even when KeepTogether = 'False'?

I currently have a report in SSRS that has a large blank area on the first page if I print it or export to PDF. There is no blank space when I view it in html. The report has two main sections, first a rectangle then a tablix. There is a blank space after the rectangle on the first page that pushes the tablix to the second page because it is trying to keep the tablix together. I have KeepTogether = 'False' on the tablix. My desired result is for the tablix data to be partially on page 1 and to spill over into page 2 so that there is no blank space. I know that there may not be an exact solution to this problem but if someone could point me in the right direction I would be much obliged.
The easiest solution I did was to add a new row to the top of the tablix and then to move the rectangle and it's contents into that row. I guess that it counts the tablix as one chunk of content that cannot be separated and that's why all of the content in the tablix was getting pushed to a new page.