I have a little problem with the vertical lines in Detail section. In detail section at the end there is horizontal line. Also I have Report Footer section which displays total number of records. I suppressed Page Footer section.
I would like end all the vertical lines to the last line of the records not to extend beyond the "Total"(Report Footer).
It works fine if everything on the same page. The problem starts when the last line of the detail is on the first page and the "Total" wouldn't fit on the first page. It displays "Total" on the second page and it draws vertical lines to the end of the page.
Thanks for any suggestion.
I faced the same problem recently and resolved it just now. Just want to share what I did to resolve this problem for those who are stuck in this CR dilemma :).
Create a detail section below the detail section with the vertical lines then suppress it.
That's it! worked like a charm. Hope this helps.
Usually Crystal displays lines properly, when they start and end in
matching group sections (1st header - 1st footer). If they start in
page header and end in details for example, then result is often
undefined. Or from detail to page footer - result is undefined again.
An old question but thought i would add my findings. Thanks to #Arvo explanation above this led me to figure out why i had this issue. A report i was amending had a line object about 2-3 pixels over the boundary of the detail and header section, this caused the line to repeat on every single detail section regardless of intervening suppressed sections (there where no groupings).
Moving the line object so it didnt cross the boundary meant it only appeared in the detail sections it went over :)
Do your vertical lines start and end in matching sections? Dou you have any groups defined?
Usually Crystal displays lines properly, when they start and end in matching group sections (1st header - 1st footer). If they start in page header and end in details for example, then result is often undefined. Or from detail to page footer - result is undefined again.
Related
I am trying to export report in excel but detail section give extra line per record. i want report with only single line for single recordenter image description here
Make sure that the bottom of your section is touching the bottom of every field in the section. If any fields are slightly taller/shorter or there is a gap between the field and the section boundary this normally happens.
If you believe that not be the case, possibly share a screenshot of the report in design mode and it may help.
I would like to display only 4 pages on my Crystal report, however, I am getting an extra empty page. I cannot pin the reason to what sounds like a trivial issue.
My report has the following:
- No fields in the main report - This is not avoidable.
- One sub-report.
- In order to have the sub-report header repeat I followed this method described here. (I just do not understand what the formula means and whether this is the reason for the extra page but I am getting a header as I require).
I am suppressing the pages in both the report and sub-report as follows: in the suppress I am using
if pagenumber>4 then true;
I tried to put in all my sections
Not(onLastRecord)
I am simply lost. All I need to do is print 4 pages only regardless how long the report/sub-report is. I also need the sub-report to have a repeating header. Thanks.
Try to reduce the size:
-If possible supress group and report footers
-Right Click on each section you can and select "Fit Section"
-Change the color of some sections so you can see if any responsible for the extra page
-Maybe the paper is set to letter ? : Go Design - Page Setup, set A4 or you can also try no printer to see if something changes ( this last one will change the format of your fields so backup before)
If you have any footer sections that are not being used, try suppressing them. This will remove empty white space that is added at the end of the report. Another option is to adjust the size of your top and bottom margins, providing there are no design conflicts in doing so.
If you have any white space at the bottom of the sections that appear at the end of the report you could also reduce the height of that section to remove the white space.
I have a Crystal Report with Details section that has field that Can Grow to multiple lines. The Details section has vertical lines that span from the top of the section to the bottom. The problem is, in the last record on the page, sometimes it will display blank section, because the next record has 2 lines and it does not fit into the page. See below example.
How to resolve this problem? I tried checking/unchecking "Keep together" but it does not help.
Report Design view:
Horizontal line settings:
Vertical line settings:
I would suggest that you limit your columns in details section only. Do not extend to Report Footer.
Make the property of the vertical lines ExtendToBottom to True
Make the property of the horizontal lines ExtendToBottom to True
In my main report preview and exported PDF file of it as well I have a unused white space between details sections (the section with the grid starts from next page) as shown in the following image. Off course I want that white space to be removed.
I tried with unchecking the "Can Grow" and "Keep Together" in the sections which contains grid subreport (as well as in the subreport itself), but unfortunately I have no result. In case when I have for example 3 rows in the grid section, the section starts right under the chart section above, but in case when it must go to the next page, it makes that white space.
And to mention this, in both subereports in theirs sections, I have suppressed all the unnecessary sections, basically I am showing only the ones with the data.
Thanks.
I solved this. I checked "Can Grow", and deselect the Keep Object together in the subreport.
And now the grid works fine! Starts at the end on the graph, and continues on to the next page. Here is what I done:
I have a report footer that i want to appear on the last page only of my report. I have the option selected that says 'Print on Last Page' as True. I also have the option to print on first page as false. However, when i have an invoice say 4 pages long, the footer shows up on all the last three pages.
thank you for your suggestions.
You could try placing the content at the end of your report, making sure it is outside of any grouping object (list, matrix, table).
If the content is at the end of the report, it will always be on the last page and only the last page. No footer or special group is needed.
You can position it on the last page by leaving some empty space between the content you want at the end and the rest of the report. Check your report height and width settings.
Good luck.