Our invoicing system needs to print OMR (optical mark recognition) symbol on each page of our invoices so the folding machine knows what to put in the envelope.
That little PNG picture with OMR mark has to be put on each page. Our invoice is consisted of main report with two subreports created in special .jrxml files. Picture is generated by calling web service with passing page number and 'last page' mark as a parameter in http request.
What we can't put to right is that 'last page' mark since variable called $v{PAGE_NUMBER} can be read in two contextes: page and report. If you read it in page context you will have actual page number, in report context that variable will give you total number of pages. You cannot read such variable at once and know that you are on, lets say, page 3 of 5.
Since I have 'access' to last page (last page is filled with static text) in main report I can put another image with total number of pages and hardcode 'last page' parameter set to true, and put that image on the very same position on paper where regular image 'sits' so this image will overflow another generated in transactions subreport, but then there is no rule of which image will be over another, this approach is only partly successfull.
What can I do?
If you put the OMR symbol in the footer, you can use the report element Last Page Footer, which will cause the last page footer to be different than the other page footers in the report. This way you can put a last page mark on the last page of the report.
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 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.
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
How to use jasper reports to print something only on the first page. I am using jasper reports for printing invoices and only on the 1st page I need to print the Remit Payment To section with the address following it. Customer address is also present there. The way it is currently designed is that this goes into pageFooter section and we use printWhenExpression(PAGE_NUMBER = 1) so that this only gets printed on the 1st page of the invoice. But the downside of this approach is that the jasper engine reserves the size equivalent of the page footer on all the other pages (1..n) of the invoice. So we are able to use only about 2/3 rd of all pages. Remaining 1/3rd page which is for page footer is blank for all pages except the 1st page. This increases the number of pages. Any ideas for fixing this issue?
Use "Print When Expression" of the Page Footer itself, not the field.
I have a requirement to have a page footer show up on the first page of a report, and then no page footer on subsequent pages.
When I create a report that toggles the visibility of objects in the footer it works fine in BIDS, and when I export to PDF, however upon export to MS Word, the footer from the first page appears on every page.
In other tests I have attempted, it appears that other than the Page Number, anything that appears on the first page of a report's footer, will appear on every page when exported to Word.
Does anyone have ideas for how to create Footer content that changes depending on what page you are on, and will persist through the export to MS Word?
This answer is pretty late in coming to this user, but for any others fighting with this, please see the msdn SQL Server export to Word write-up here:
http://msdn.microsoft.com/en-us/library/cc627455(v=SQL.100).aspx
In a nutshell, toggling states anywhere in the report is not supported. Whatever the state of the report item is on the first page is what it'll be throughout the exported report. With that in mind, it appears that PDF will be a better format to support with your customers.