I have following problem.
I have subreport_1, now irrelevant and then subreport_2, with group header and group footer, with keepTogether = True.
Then I put subreport_1 and subreport_2 in mainReport and execute.
In some occurences, when end of subreport2 is near the end of the page, keepTogether does not work and last row is splitted, with rest, group header and footer on next page.
It works when I change size of bottom margin in mainReport, but I think it can occure again when I have any other row count or so...
Could you help me ?
Thanks
I saw your question posted as an answer to one of my questions (http://stackoverflow.com/questions/13830635/ireport-place-border-around-entire-group-in-column) and then noticed you had created a question of your own. To solve this issue I grouped on the field I wanted to keep together and then in the XML view I added:
keepTogether="true"
to the group definition. It ended up looking like:
<group name="group_foobar" keepTogether="true>
In my report this made it so that a group would not break across pages. In the case where a group could start on a page but not completely fit then it would not print on that page and instead start on the next page.
You say you have used the keepTogether tag in your report. Was that in subreport_2 where the grouping is actually taking place? That's where it would need to be. And since you are performing this grouping in a dynamically expanding subreport, I would set subreport_2 to ignore pagination and set my dimensions in the main report so that the main report can control the pagination.
Related
I have a report with the following structure:
PAGE HEADER
DETAIL BAND (12 of those)
SUMMARY BAND
The detail bands show depending on expressions I specified. Also, the content of the detail bands are subReports, one per detail band (don't know if that is relevant or not here).
What I'm trying to achieve is to execute the report without any filter as the ID or any other field of the table. Instead, I want to extract the information of all the registers of one specific table (let's name the table USER).
What I'm expecting to find when I execute the report is something like the following:
PAGE HEADER
detail sections (shown depending on the expressions )
SUMMARY
What I'm getting looks similar to the following:
PAGE HEADER
DETAIL 1 (for user1)
DETAIL 2 (for user1)
DETAIL 1 (for user2)
DETAIL 4 (for user3)
and never the summary band (just at the end of the report)
As you can see, all the users are getting mixed while what I want to do is to start a new page for each one of them.
QUESTIONS:
How can I get the report to show each one of the users from the table
in separate pages?
Is there some property I missed that allows me to
do that?
Thanks!
I think I found a way to solve this challenge. I just made a group (Group1) based on the ID's of the users and put the content of my Page Header inside the Group Header just created. Did the same with the Summary band, put all it contents inside the Group Footer.
Then, selecting the Group Header (or the Group Footer) I checked the Keep Together and the Start New Page checkboxs from the Appearance tab.
Furthermore, for each one of the detail bands, selected the Group1 just created for the Group Changes selection combo in the Appearance tab.
I didn't do much testing yet but it seems like it's working as I wanted it to. If I find any other (better) solution I'll update the answer. Still open to hear advices though.
So basically I have a report. I need this report to be printed as a 'set of reports'. Except that for each time the report is printed, there has to be a specific numbering at the bottom of the page. Where it would look something like this:
Page 1: Report + Page footer text 'Number 1'
Page 2: Conditions
Page 3: Report + Page footer text 'Number 2'
Page 4: Conditions
Page 5: Report + Page footer text 'Number 3'
Page 6: Conditions
And so on, for an undetermined amount of times..
In order to achieve this, I have created a main report, which currently contains 20 subreports, in order to achieve 20 pages (but I really I'd like this to be dynamical, maybe to be able to set the number of copies or something). Where each subreport consists of the single mentioned report (through the subreport 'Choose an existing report' option), with a custom text at the bottom.
The problem with this is that I can't maintain this. Every time an adjustment needs to be made to the original report, I will need to access 10 subreports and make the very same change or reload the report into this subreport.
What alternative ways of achieving my goal can you suggest, because this feels really 'dirty'. Thank you for reading.
I run Version 14.0.2.364 of Crystal Reports 2011
To achieve this, you need to use group and detail section in main report. For making adjustments with paging, each section has his own
page before
page after
reset page
So to help you a bit, you need to have your data in one datasource, and group by
Report/Conditions. For each group you can have only 1 subreport which will have link for that specific subreport (e.g. where barcod of smth is 1234) and there show your subreport data. For page number i would advise you to use my approach (for grouping) and then for page number you display group number (and that solves you all formulas for calculating pages).
If you are not familiar with grouping in Crystal, you can group your records in report by some fields by following image below
To summarize, try to define by which fields your reports has 20 subreports (probably some keys from database) and then group by that fields, examine advances of section expert and paging and you should be done in few hours making your report readable and easy to maintain.
Hope it helps
Imagine a regular ol' report that has generated data and has one grouping level. We all know that grouping adds a section above the detail section and in here we can put in the controls that hold the grouped fields.
However, is there a way to display the grouped fields on the left of the detail section instead of above it? I know it's incredibly counter-intuitive because when you open up Access in design view, you don't have a place to put fields to the left of the Detail section - you can either put it inside or outside. But is this somehow possible?
I thought of using a subreport, but then the next question would be - how can I make the subreport generate data that lines up nicely with the data in the Detail section of the main report?
Is this possible?
Update:
Image of what Access currently does.
http://imgur.com/tbr8jz4
Image of what I'd like it to do.
http://imgur.com/WA9TbTI
Basically, I just want to show the stuff from the grouped section to the left of the detail section. It would not be repeated for each record.
I am using the below crystal report to display my record and also to group using the column batch . The Main report works fine , however, when i group by a particular batch, The report print the group footer and proceed down with another empty long row to the end of the page. I tried to fix this but i dont seem to get it going yet. I set the report and page footer to supress blanc spaces yet nothing change.
Also when printing the report, it print an empty grand total row on each page. This also i am not sure why it does that. PLs any suggestion would be appreciated.
Just like suggested by siva .It turned out, i use a single line to divide the columns of the report. That say, both the report footer and the group footer rows will while grouping ,because the same vertical line transverse through . When i minimize the lines and restrict each to it section , the error goes away.
I have a multi-column Crystal 2008 report that is grouped on a date field, and I want to prevent that group from being split across the column to column boundary.
Googling it, it seems impossible - no one even has some sort of hack for faking it.
Here is an image of the issue - I would like Friday the 26th to all be in the second column.
Nothing is impossible!
While initially discouraged with the voted answer, I kept searching and found something about using a subreport for the "details". Then I used a mailing label, although this may not be necessary, but in my use I wanted each group to have identical size, this worked perfect to make sure the groups stayed together in the columns. It is a little clumsy but seems the subreport won't cross columns.
Anyway this is an old topic, but thought I would leave this here just in case someone dusts it off.
Looks like this is impossible for now.
Right click the group, select 'Change Group...', select the Options tab, check the 'Keep group together' option.
If you can determine beforehand that you want the group to print on the next column, have a blank detail line extra at the bottom of the detail lines and check the print at bottom of page and suppress it with a formula that is controlled by either a crystal variable or a database field. This is the only way I have found to cause a group to stay together. You find the print at bottom of page in the section expert, add the blank line as the last of your detail lines.