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.
Related
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
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
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.
I want to go through a MS Word document page by page and generate images of all pages. I am stuck in the very beginning. Although I can compute total number of pages I cannot get the content of say page 1 into selection object.
I want something like
select page 1 of active document
or
set myRange to create range active document page 1
or
create range active document start (start of page 1) end (end of page 1)
Of course I have the page count and I want to loop on it and generate images page by page but please help me first to get page content into a selection object so that I can proceed.
If anybody has some other idea of accomplishing the job them I am all for it.
I have solved it.
The steps are.
Convert word document to pdf through apple script.
Make a work flow in automater to render pdf as images.
Call the word flow through shell command from apple script.
I will make a tutorial in few days and post some where.
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 ?