I am trying to have a header appear on all the pages of a report designed in crystal reports 2013. Most of the reports will one page but occasionally they may be more.
In the section header I add the below to the suppress formula and leave the box unchecked.
If PageNumber<1 Then True
However, if there are two pages the header appears only on page one. Thank you :).
Report header will be added once for report, So there is no meaning to write that formula in report header.
Now as per your requirement.
Add fields in page header and also in group header.
Add the below supress formula for page header.
if pageheader =1
then true
else false
So in page one page header will be supressed and fields will be displayed as headings in group header.
From page 2 from starting of the page you will find the fields and only one problem with this solution is if group header starts from next page you will find two headers.
Let me know how it goes
If you want to show some Objects on all pages then place objects on Page Header, If you want them to shown on Every group then place objects in Group Header, If you want to show them only on start of your report then place them in Report Header.
Related
Our ERP system Macola has a PO form created with Crystal Reports. I need to add a second page, Terms & Conditions. I've tried several suggestion from the web with no luck. The second page prints with the Terms & Conditions, but the first page header information still prints. I tried the suppression using pagenumber >1, but when you look at the printout of the second page, the page number is 1 so this formula doesnt suppress the header information. Any help would be appreciated. Its amazing that just adding a second page with terms & conditions would be that difficult. Is there an easy way to add a PDF to the last page, not using subreport.
I have a few reports that do exactly what you describe. The way I designed the reports was to put the Terms & Conditions in the Report Footer section. Then in the Section Expert for the Report Footer I checked the box for "New Page Before" on the Paging tab. This ensures this section always begins on a new page. As for suppressing the Page Header on the last page, I used the following formula.
PageNumber = TotalPageCount;
I also used this same formula in the Page Footer section to ensure it is suppressed on the last page as well.
This design also assumes that the user will never print more than a single PO at once. If your users need to print a range of Purchase Orders at once, this design will only print the Terms & Conditions page once regardless of how may Purchase Orders are being printed.
Also, based on what you said about your pagenumber > 1 formula not working as expected, you may want to go through each section in the Section Expert and inspect the Paging tab to see if any sections have "Reset Page Number After" enabled. Any sections that have this enabled will force page numbers to reset back to 1 after that section prints and could cause any formula that evaluates PageNumber to behave unexpectedly.
I cannot figure out how to get rid of the last page in the Crystal report, whether in the report itself or in C# code behind it.
I know how to delete the last blank page if the report has grouping and use Not OnLastRecord. But this is not my case, I don't have grouping, and I need to delete the last page regardless whether it's blank or not. I also know how to suppress the header on the last page and use PageNumber=TotalPageCount, but this doesn't delete the page.
I would appreciate any help.
The usual cause of a blank last page is that you have a report footer section with nothing in it. Suppress that section.
Another potential cause is a group footer section set to "New Page After". Make that option conditional with "NOT OnLastRecord"
Anyone know if there is a way of changing the 'Enabled' property of a Crystal Reports page based on a formula? For example, I have multiple pages in a report. When the filter for a data band on said page returns a null value, the page appears blank, and is printed as a blank page.
There's options at the details, group header/footer, page header/footer, and report header/footer sections to "Suppress Bank Section". Find the one that's right for you:
I'm attempting to modify a Crystal Report that prints our invoices. The original request was to allow the report to print the T&C (Terms & Conditions) Page at the end of each invoice. I was able to do this successfully. However, when I presented it to the end-user they explained that they don't want to have to print each invoice individually. (Makes sense...) However, I have not been able to successfully provide results as of yet. Below are my challenges/questions:
I obviously can't expect the Report Footer to print multiple times within the report so I inserted a section below my current page footer for the T&C. I wanted to add a 'New Page Before' but that option is grayed out. After attempting to identify what was causing this to gray out without success (content that was marked 'can grow' or that was too large for a section is my understanding) I decided to attempt creating a subreport in the new page footer & I marked that section of the report as 'New Page Before' so that the T&C would be placed on a new page between each invoice. I finally got the first line of the T&C to show up but the rest was cut off and the next page started the next invoice.
Does anyone know why my subreport in the page footer - to display a single page print of our company's T&C - isn't working as intended?
Thanks in advance for your time!
Renee'
Open the SubReport by right clicking and going to Edit from the main report.
Resize the Detail section of the Subreport. This should help displaying all of the T&C
I have a group header which contains the column names for the data in the details section. I am trying to display the group header on every subsequent page since my data in the details section is too much.
I have tried enabling the "Repeat group header on each page option" but still no help. Also tried many other solutions posted on the web. Doesn't seem to help.
My report structure is similar to the below:
Report Header
Page Header
GH1
-GH1a
-GH1b
Details
-GF1b
-GF1a
Report Footer
Page Footer
I am trying to show the group header for GH1b. Any advice would be appreciated. Thanks in advance.
Group header will be displayed on change of every group..
Since your detail data is huge group header won't be carried to next page where there is no change in group.
One wayout would be place all columns of GH1b on the page header so that it appears on every page and write the code to supress the page header when group changes that is when GH1b appears.
Hope this solution helps.