Page Break Issue in pdf output - birt

I am using BIRT Designer, I am having an issue of page break when generating the report as PDF.
After generating the PDF report, What happen is since the note from the input file is too long for the description column to accommodate some of the string is being pushed down to next line or being wrap to ensure that the note fits in the description column area which cause for the trailer details to be push to the next page.
I have tried many page break options like avoid before and after for tables/grid but nothing is working.
Please find the attachment of sample pdf for getting page break issue and rptdesign file and xml file.
So Please give some suggestion to solve as soon as possible.
Thanks and Regards,
Sharath.

I had similar issues in the past and found these answers a long time ago.
Set the page break interval to zero and see if this works for you. The page break before, inside and after settings should be set to Auto as setting something to avoid will always try to avoid page breaks when displaying your selection. Auto will use page breaks where necessary.
Check to see if this works for you.
You can also try entering this code in the beforeFactory section:
if( reportContext.getOutputFormat() == "pdf" ){
reportContext.getReportRunnable().designHandle.getDesignHand le().findElement(
"mytable").setProperty("pageBreakInterval",
0);
}
Go to the script tab and then change the name "mytable" to the name you have given your table under Properties > General > Name

Related

How to do page numbering in footer htmls with wkhtmltopdf?

i m using snappypdf and i managed to add an html footer to my file with this code in my Laravel controller:
->setOption('footer-html', view('front.mail_templates.layouts.emailFooter'))->setOption('margin-bottom',17)
but now i want to add page numbering to it, and after looking i found this solution:
->setOption('footer-right', "Page [page] of [toPage]")
The problem is i want these two to appear in my pdf but i can't make them work together they work separately but if together only html footer show and page numbering is invisible , I hovered over an empty space by chance and after copying and pasting it elsewhere, i found out it was the page number printed transparently. so is it possible to make them apear both in my footer? or any other suggestions?
EDIT
here is my footer html code :
every thing worked fine untill i added the javascript code, now it generates the following error : he exit status code '-1073741819' says something went wrong

How do I display a barcode, only when it is in the last page

I have a document, in which there is a page, that flows. I don't know till how many pages the table is going to flow. Now, I need a barcode to be displayed in the last page (last flow page). I tried writing the rules, by using
SYS_Page_PrintedValue = SYS_Page_TotalPrinted,
also tried SYS_PageInDocument = SYS_PageTotalInDocument
and then I have tried SYS_Page_PhysicalInDocument = SYS_PageTotalPhysicalInDocument.
But did not work. Can anyone help me with this?
Thanks in advance.
By placing the Barcode relative to the bottom of your table, as the table flows it will therefore always be on the last page.
You can place barcode directly on the flow page under the flow frame and set that page as last flow page.

BFO Java Report Generator - Print Even Number of Pages

Is there a way with BFO Report Generator templates to force printing an even number of pages?
We currently are using the Report Generator to bulk print a set of reports and have set the printing option to double-sided. When a report has an odd number of pages the next report starts on the back of the previous print - we'd like the next report to start on a fresh page.
Have tried inserting the following at the bottom of the template (before closing body tag) but to no avail:
<#if (totalpages?number%2 != 0)><div style="page-after-break: right"></div></#if>
Any help greatly appreciated.
The BFO FAQ explains how to do this:
How do I force a page to begin on an odd or even page?
You can set this is in the <pbr> tag - eg. <pbr page-break-before="odd"> which means only do a page break if the next page is odd. You can also do <pbr page-break-before="even">, which means only do a page break if the next page is even.

Displaying a text on the last page of crystal report?

This might be a very naive question but i am not able to get to it.
I have a simple text object that i wish to display only on the last page of the report after all my details section and group footer sections are displayed.
I have tried applying Suppress property on page footer to work, but it does not happen. Then i tried suppressing the text object but that did not work as well.
This is what i pushed into formula field:
if PageNumber = TotalPageCount then
false
else
true
Am i missing something.
Any help will be highly appreciated.
Thanks in advance.
Try putting your text object in the Report Footer section.
you will required to use Report Footer. please follow a link. if this is the answer to your question mark the answer.
Link:.
http://publib.boulder.ibm.com/infocenter/iadthelp/v6r0/index.jsp?topic=/com.businessobjects.integration.eclipse.doc.crdesigner/reportdesigner/crconreportfooter.htm
Create a section below the last group and place your text field there so that when ever everything is displayed you will get the required text
E.g:
If you have Group1 and Group2 then create a section in group footer of Group1 using "Insert Section below and place the Text field there.
Resolved...!!! The problem was that in the Format Text dialog box, after writing the formula i had checked the Suppress Check Box because of which the Text Object was Suppressed all the time. Thanks for all your help...!!

Group suppressing based on page numbers

I have a warranty statement that needs to be print only in the second page of the report.
I tried using Selection Expert, Suppress (No Drill-Down). I add PageNumber<>2 formula in it. However, when I run my report it keeps the entire section suppressed for all pages.
I am new to crystal report!.Please help!
If you always want to print that statement only in the last page, you can place that in the report footer of a report. And FYI, Report Footer will be the last section in a report which is always printed on the last page of report.
If that's not the case then I need more information such as
1. How many pages does this report has ?
2. Will it contain more than 2 pages all the time ?
3. And I wanted to know the section in which you had placed the warranty statement ?

Resources