I have been asked to mock up a report in Crystal (i would normally use SSRS but the application uses crystal for report), and i need to split the page up into thirds. The idea is that the top 2 thirds are for the customer, then there will be a tear line on the paper and under that will be the section for us to keep.
What is the best way to accomplish this, baring in mind the report could go over 2 pages?
Cheers
Luke
Based on my understanding of the requirements, you just want to space things out over a customer's order (or something similar). I am assuming the grouping will be by customer with items in the details sections.
1) If all fields required are in a single records, and you can stick by the "2/3's page" visually, you can force the spacing simply by extending the reporting band sections. i.e., Increase the page header and include some customer information, or do the same with a group header, etc. and then space out a single details band with fields spread out as is visually pleasing.
With the spacing done this way, you can also embed a small band that holds only a dashed line, which will be a visual tear line.
Fields placed in the next band will be the portion that you intend to keep.
2) If the customer section will have multiple items in details -- be smaller or larger (i.e., if you are pulling in an inventory list that may have 1 or 21 items), then you can still something similar, but not using enlarged, fixed band sizes. You can put customer general information in a group header, followed by multiple details (records), and end with a two-band group footer. The first band can be any closing information for that customer, followed with a visual tear-bar, and the last band can be the information you wish to keep.
Grouping by customer and forcing new pages for each customer should give you what you're looking for.
I hope that's clear enough to give you two alternatives.
D'Oh... and, forgot to include: You can use the Section Expert to format a group footer to Print At the Bottom Of Page, forcing the portion that you want to keep to the lower part of the page. On a multi-page printout, it would be forced to the bottom of the nth page.
Related
Please let me know if the explanation needs to be more clear.
I'm trying to create a report in Jaspersoft Studio composed of three sections: customer info (a JavaBean containing name, email, birthdate, etc.), customer addresses (a list of JavaBeans containing each of them street name, number, neighborhood, etc.) and customer orders (also a list of JavaBeans containing order number, date, a simple address description, order total, etc.)
From my understanding each of those sections would be a subreport and each one would be fed by a different JavaBean datasource.
I'm not sure how to distribute them across pages. For example, the first section (customer info) is small and could fit in one page together with the second section (customer addresses). But customer addresses may eventually grow beyond one page so perhaps it should be placed in a separate subreport (I'm assuming doing that creates separate pages for that section). I'm not familiar enough with JasperReports to look up a solution, in particular because I don't know how to add two datasources to the same report/page, only to a single report. This is why I'm considering one subreport per section, even though it is not very economic regarding the number of printed pages.
Also I'm not sure in which bands should I place the sections. I was able to place the first section in the Title and the second in the Summary band, but I'm not sure where to place the third section. Placing two sections in the same band (for example, in the Title) seems to cause the sections to overlap.
Any advice?
My report has too many columns to display. How can I create multiple pages in a single Crystal Report?
I've tried 2 Page Headers and 2 Detail sections but it doesn't work as I expected.
This will be difficult to implement, especially if you're looking to make your report printable on paper. Crystal usually expects to make multiple pages when there's too many rows, not too many columns.
You might be able to pull this off with clever use of subreports, one for Page A, and one for Page B, then forcing New Page After and alternating them. But that's dependent on what the rest of your report looks like. If each page still has multiple rows, I wouldn't try this.
I have an RDL report built in Business Intelligence Studio 2008 and I am having an issue with an unwanted page break.
I have a single dataset with a singletable with some summed data. I have added in a List and added two groups.
I have even checked the page break properties of each one.
The report works fine, but my top most group seems to page breaking, leaving extra pages in the beginning.
What I would like to happen is to have the top most group be a page header, and the second group to be a group header for the detail. Am I going about this the wrong way?
Some things you can look at...
Check your report Properties - Look at Consume Container WhiteSpace >
Set it to True
It looks like you are checking the Tablix page break. Did you right
click on each of the Row Group > Group Properties > Page Break
Options Between Each Instance of a Group?
Another issue could be the margins (make sure they are set to inches
if that is what you use). Make sure that your Margins + Report body
is less than the printing area you are attempting to print on
(screen/pdf/paper/etc).
Using '&' for string concatenation instead of '+' (don't know why but
this sometimes causes page issues).
Check can grow settings on your cells
Print destinations settings > properties > check "Override Default settings"
Check the white space around your report body (attempt to minimize any if you can)
Here is some other useful info about Pagination from MS SQL Server
I had a tablix with "Keep Together" marked. The tablix also showed a subreport for each row. It turned out that the first record had a very long subreport so it could not fit on the page w/ the top of page elements I had (report title).
this took me the better part of an afternoon before I realized what was happening.
ultimately i lived with it. I wanted the keep together feature. Next week, a shorter record will be the first one and it wont be an issue.
I have a fairly straightforward Jasper Report that uses Grouping for up to 8 groups. When I run it, it correctly groups and prints, but each group is on a new page. Although there are several SO and other questions that ask this same thing, I have not been able to get this to work.
What I want is exactly what I have now, but instead, for each group to lay out horizontally on the page.
The report property "print order", which several people allude to, is not changing this behavior. And when I tried setting "columns" to 3, it simply takes the first group and spreads its data over 3 columns, and then starts the next group on a new page.
I have tried every other combination of parameters that might prevent this, but without success. Does anyone know if I can show the groups horizontally across the page?
Hopefully this is simple enough that someone can help. I have a simple row oriented report.
The problem I have is the Keep together command is chosen on the detail lines, but sometimes the detail lines will go over to the next page. There are usually 4 or 5 detail lines before the next group starts.
If there are more detail lines than will fit on the page, what I want it to do is a page break and start over showing the group header #1 (simple report with one group) and then start printing the details again.
So, what would the necessary formula be to keep the detail lines together? Why doesn't keep together keep together?
It sounds like you want to select Keep Together on the group, not the details section. (Group Expert -> select your group and hit 'Options' -> 'Options' tab -> select 'Keep Group Together'). Selecting Keep Together on the Details section only causes that single row to not be split up (this is the default behavior, as far as I know).
I'm not 100% off the top of my head, but if there are more details than will fit on the page I think it will behave as you want; page breaking before the group starts and then continuing onto a second page.
I guess you marked Keep Together on each Details section, which keeps each section from spliting not all of them.
Try checking it on Details general section in Section Expert.
Check this screen shot to see how: