If you are unable to create a new account, please email support@bspsoftware.com

 

How to render blank PDF page for double-sided printing when page breaking.

Started by CogFanGal, 21 Apr 2017 01:08:31 PM

Previous topic - Next topic

CogFanGal

Hello Gurus,
Does anyone know if this is a known issue in Cognos 10.2.2 or if there is a work-around?  Here's the requirement:

The Inventory Report generates a 2-4 page report for each of the Product Categories, page breaking for each Product Category.  The business would like to print the PDF output on double-sided paper, but we would need to force a blank page for a report that was only 3 pages long so that the back side of page 3 is blank and NOT the first page of the next Product Category report.

They currently run the report for 1 Product Category at a time so that it can be printed double-sided without impacting the next Product Category report.  Bursting would also be tedious as they would have to go and print each one individually.

I've read several forum postings that it appear the Render Variable for PDF output doesn't work with the PageNumber() function.  I can display the same Variable expression on the 'blank page' but it seems the variable isn't holding the value. 
I've tried using a Boolean Variable:  mod (PageNumber () , 2 )   
As well as a String Variable: If ( mod (PageNumber () , 2 ) = 0 ) then ('Y') else ('N')

The 'blank page' renders whether the calculation for the variable returns 1 or 0 (or 'Y'/'N').  Any thoughts? 



New_Guy

Hi,
You can try placing a block under the list and sizing it, so the height of it is more than half of the page and this will take a full page.

Good luck
New guy

CogFanGal

New_Guy,

You ROCK!  Thank you so much!  I can't believe how many hours I spent trying different ways to get this to work.

I put a block at the bottom of the report page (removed my unnecessary 2nd page that I was trying to force as needed).
Then added a Conditional Style on the Block, with an Expression Definition of:  mod (PageNumber () , 2 ) 
Then in the Font of the Conditional Style, set the Top Padding to 8 inches.

Now the end user can run the report and print the entire PDF without having to print it in several passes indicating which page range to print.  Thank you again.   :)

New_Guy