how to create watermark background in crystal report? - crystal-reports

hello
i want to create watermark background in crystal report.
one way is:
1- On the Report menu, click Section Expert.
The Section Expert dialog box appears.
2- In the Sections list, click Page Header, then select the Underlay Following Sections check box.
3- Click OK to preview the report again.
but in this solution lines and boxes in report design page appear back of background image.
what is better solution?

the solution to this problem is make a subreport, the main report will only have the watermark on page header A, and the subreport on page header B

Your method is the best way to do it, as far as I know.
On your background don't forget to right-click->move->to back. That should put the background image in the back and all other report elements in the front.

Related

How to prevent image in Crystal Reports 10 from being cut off to the second page

I'm making a Crystal Reports template. The template has some text in the header and then it has an image. If the text has a few lines, the image is normal and allowed in the first page, but if the text has many lines the image will be cut off in the first page and second page. Could it have ways to prevent the image from being cut off to the second page, such as auto-rescaling the image size?
I tried can grow and other settings in Crystal Reports 10, but it didn't work.
Report Design Picture
Make sure Keep Object Together in the properties of the image is checked. This will prevent CR to split your image across pages.
Best option in this case would be Create another section and place the image in that section instead of text and image in same section, This will force the image to go to another page if it doens't fit in first page.
For E.g, if data in report header, create one more section Report Header a and place text in that section and Report Header b and place image in this section

Display report header in every page of cross tab in Crystal report

I want to display report header in every page of my cross tab report in Crystal Reports 13. Currently the header only appears on the first page. How can I fix this problem? Kindly suggest me.
Check bellow screen shot
Page 1:
Page 2:
Design View:
Right click on the selected fields in report header and go to format and check option Repeat on Horizontal Pages so that it applies for every page
Finally I solved the problem to display header for cross tab report in each page.
1.Create a formula using bellow code
WhileReadingRecords;
""
2.Create a Group Field using that formula field (which is empty group)
3.Crete Cross Tab Report inside of group header section.
4.Finally place my report header inside of page header section.
Now its working according to my demand and display report header every page
Thanks all of you
Check bellow screen shot
You have to do following things:
right-clicking on the row header
select Row options
select Repeat Labels on Page break
Crystal Reports lets you designate report objects that don't expand horizontally, such as text objects, field objects, OLE objects, charts, maps, lines, boxes, and so on, to be repeated on each additional horizontal page that a Cross-Tab creates.
Check this for help.
Also, similar question How to repeat Crystal Report Header on each page answered by me here. If you still after this links don't get solution, feel free to ask so we go into details of your cross-tab etc...
There are two kinds of headers in Crystal Reports. There are Report Headers (which you're currently using) and there are Page Headers (which are what you want to use in this case.)
A Report Header will only display once - on the first page.
A Page Header will appear on every page. (Unless you
specifically tell it not to.)
Move the circled fields into a Page Header and suppress the old Report Header you were using before. If all goes well, you'll see the circled field on every page going forward.
One other possible approach would be to insert a separate section above each crosstab that will contain your repeating Page Header. (Section Expert -> Insert) or (Right click Section -> Insert Section Below)
Then for the aforementioned inserted section, force a page break before. (Section Expert -> New Page Before)
Repeat this step for each Report Header section that contains a crosstab. The downside is that you will have many pages depending on the number of crosstabs in your report. Hope it helps.

Make JasperReports keep a text box on the same page as the item immediately after the text box

I'm using iReport Designer 5.6.0.
I find that working with iReport and JasperReports is one of the skills that I learn and then quickly forget.
I have a subreport that shows three different "view" of the same piece of data.
Form View
Tabulated (Table) View
Plot (Image) View
Before each of the views I want to have a Title.
Here's a picture:
Jasper is sometimes putting page breaks between the title and its view.
Whats the best way to make JasperReports keep the title on the same page as the thing is titling?
The very fact that I'm calling my text boxes "titles" makes me think each view needs to be its own subreport.
Would that solve the problem?
Is there a "keep with next" box I need to check somewhere?
Here's what you should be doing.
Take a sub report for every view desired(this would simplify the design).
Put your title and the desired view with data in the same band (this would force title to stick to the view) in sub report.
Hope it helps.
Maybe you can put them in its own group and check the box "Keep Together"

Jasper Report column break with group by

I am creating a Jasper report using iReport 5.1.0 output to pdf.
I have made report based on group by clause.
The group starts from 1st page itself but I want that to start from 2nd page so that i can show, page header, footer and title(without any content but an empty frame). How to do that?
I used a column break but that skips detail band also so not working.
Also, please tell if and how to set background for report.
Regarding the breaks,
You need to use the Page Break instead of Column Break just before the Group header, so that every single group starts from the new page. And even the first page can be blank as per your requirement.
Or what can be a better option is ,
You can click on the Group header node in the Report Inspector and there you can see a property called Start on a new Pag**e so if you **check this property you can see that all your groups automatically start on a new page.
For setting the background of the report you can see the node called Background in the report inspector.
You can just navigate to that node give the height of the Background band and there you can add the image element from the palette and assign *the* image to be displayed in the background to the image element.
Hope that this helps
Thanks

Subreport needs persistent legend text

I am using Crystal Reports XI and trying to create a text box that would be displayed on every page of my multi-paged subreport. The text box exists on either the left or right hand side of the resulting pages. Right now, I am only able to display the text box once and only because the text box is placed on the main report. I tried to place the text box on a possible "page" section of the subreport but was not able to find such section.
Appreciate whatever suggestions you have. Thank you all! Sincerely,
You can place a repeating text box in the page header or page footer section that will print on every page.
That is the most reliable way to guarantee it showing on each page. The real question is: What kind of information are you wanting to display? If it is dynamic information that changes with the data on each page, the solution is much more complicated. If you are showing a static item, like a disclaimer, then the solution provided should be sufficient.
If you need more specific help, please provide more information regarding type of content and what you have or haven't tried. This will keep people from wasting time on solutions you know don't work...
Hi Create a formula #Group like below and apply group on this.And place the textbox on group header.
whilereadingrecords;
""
Goto change group->Repeat group header on each page.