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 where I am using colored boxes to delineate columns. To accomplish this, I've run the boxes from the Group Header all the way down to the Report Footer. Crystal seems to enjoy making the boxes "bleed" up and down the page so that they seem to print wherever they want in the Header and Footer.
I got the idea to use other solid white boxes to control this and it works, except when Crystal adds more filler space when "Keep Group Together" is used. For example, when the next group won't fit so is moved to the next page. This space doesn't belong to any actual Report Section. Unfortunately, if I uncheck "Keep Group Together", I get other formatting problems so that's not an option. Any ideas of how I can get this formatting under control?
The solution seems to be to not span the colored columns into the Report Footer section. For some reason, they're fine when spanning groups and details, but as soon as it hits the RF it explodes.
Instead, I just created new colored column boxes and lined them up in the RF separately. It's behaving itself now.
Try marking your whiteout box Extend to Bottom of Section when Printing.
I'm guessing here: your column boxes are marked Extend to Bottom of Section when Printing, and they're getting extended, but your whiteout box is not.
How do you display a line above a picture in Crystal Reports? I'm currently using Crystal Reports 8.5.
I am using a jpeg image in the report, with an image header section set to “Underlay Following sections”.
I added another header above the image header section, drew the line, and then gave the option “underlay following sections”, but the line is not displaying above the picture.
How can I add a line that will display above the picture?
There's a developer-provided workaround here, using textboxes: http://scn.sap.com/thread/1916479
Insert a text object and enter nothing.
Change the size (the height matches the line width) and background (background color matches the line color).
Right click on the text object and select Move | To Front. And then the "line" will be on top of the picture.
Unforunately, using Crystal Reports 2008, this would only allow me to shrink the textbox to a certain height (0.042 inches), which was still too big for a 1-pixel line.
If I understand your question, you want to add a line to an image in Crystal Report. Unfortunately, you won't be able to do this with Crystal Reports. Your best option is simply to draw a line above the image. If there is an issue with placement of the line, add another section above the section that contains the image.
A little late response, but this CodeProject answer works. I had the same problem and this workaround did the trick. I quote the answer here.
Create 2 separate reports. The 1st report will be the main report and the 2nd will be a subreport.
Place all page headers and footers on the main report.
(Main Report)
Right click on the PageHeaderSection and insert section below.
On the new PageHeaderSection, insert the image(your watermark) and set the section to Underlay Following Sections.
(Subreport)
Go to your subreport and place your data and lines on it.
(Main Report)
Again, right click on the PageHeaderSection and insert section below.
On the new PageHeaderSection, right click, Insert->Subreport
Select Choose a Crystal Report in a project, then click the 2nd report you've created. Voila! The lines will be now on the top of the
image! Just be sure to remove the borders of your subreport.
an easy way I added a line is:
add a text box (length of the line you want)
right click -> format text
click on the tab border
select either top or bottom border, the line style etc etc
You can draw a line or a box to appear on top of images.
To do this:
1- Go to Report Options.
2- Check the option Draw Line And Box On Top, and click OK.
Now you can draw over the images.
I've never tried to do this before now, but it appears that the Z order functions (under the Move menu- to back, to front, etc...) are not available for lines or images and it appears that the image z order is always above the line even if you have multiple sections and use the "underlay following sections" option.
My answer is that this can not be done the way you are trying to do it, but what if you try another way.
EDIT:
I'm assuming that you are trying to create a strike through in the image in certain instances. Assuming that, you should be able to have 2 images (one normal and one with the line through it) that you should then be able to dynamically change based on you're criteria. You should be able to find many articles on dynamically changing the Crystal Report image. Hope this helps.
What worked for me was to create a subreport that essentially duplicates/replaces the Details. Then the usual process of putting the image in the page header and underlaying following sections. The subreport, including its lines, appear above the watermark for me, but please note I'm using Crystal XI.
If I understand your question correctly - In the header section, use the line tool to draw the line. It's in the CR Toolbox. Then drag your image after the line.