Jump to content
Changes to the Jaspersoft community edition download ×

Ignore Pagination for DefaultJasperViewer


kitakura

Recommended Posts

Hi, I would like to show one whole report in a single html page -- ignoring pagination.

I created a customized jsp using DefaultJasperViewer.jsp.  I think I need to set "IS_IGNORE_PAGINATION" to true in fillReport.  But I don't know where this report is being filled. 

I looked into JasperViewerTag in jasperserver.tld but I have no idea what is going on. 

Can someone tell me how to set this value?

Thank you!

Kassie

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

This need to be done in JRXML file:

<jasperReport
         name="REPORT_NAME"
         columnCount="1"
         printOrder="Vertical"
         orientation="Landscape"
         pageWidth="2600"
         pageHeight="842"
         columnWidth="2600"
         columnSpacing="0"
         leftMargin="0"
         rightMargin="0"
         topMargin="0"
         bottomMargin="0"
         whenNoDataType="NoPages"
         isFloatColumnFooter="true"
         isTitleNewPage="false"
         isSummaryNewPage="false"
         isIgnorePagination="true">

Link to comment
Share on other sites

Hi, I was able to turn off the pagination from jrxml but what I really wanted to do is turning off/on from parameter.  I read

"IS_IGNORE_PAGINATION built-in parameter for
disabling pagination and allow creating flow-based
documents instead of page-based documents"

Does this work on JasperServer?

Link to comment
Share on other sites

Hey SuperMonkey,

You may not want to go to this level of depth but you can pass the IGNORE_PAGINATION flag as a parameter to the filling process.  In a recent project I did, we customized the Excel and CSV generation processes because we didn't want those reports to be paginated.  You can of course override the export class implementations by updating the appropriate appliationContext files.  Attached is a CustomReportExcelReporter class which uses the IGNORE_PAGINATION flag.

You could probably pass this flag as one of the input controls but you might have to do a little customization of the EngineServiceImpl to pick it up before report generation.

 

Link to comment
Share on other sites

  • 2 months later...
  • 8 months later...

kitakura
Wrote:

Hi, I was able to turn off the pagination from jrxml but what I really wanted to do is turning off/on from parameter.  I read

"IS_IGNORE_PAGINATION built-in parameter for
disabling pagination and allow creating flow-based
documents instead of page-based documents"

Does this work on JasperServer?

 

This thread is a bit old but I wanted to say that if you create a parameter on jasperserver called IS_IGNORE_PAGINATION it will work.  iReport however bombs out terribly when you try to add this.  I wasnt able to find a way to get this to work in iReport except to use the report level flag in the properties page.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...