Successfully!

Error!

Horizontal non Pagination

  • Last update:  2021-02-04
  • I. Description

    When the row height and column width of the report content exceed the paper size, all the excess rows and columns will be displayed on the next page, but you may want all the columns to be displayed on the same page, as shown in the following figure:

    截屏2021-02-04 下午4.34.27.png

    It can be added directly after the URL of the preview template &__ bypagesize__ =False to achieve horizontal non pagination.

    Note: two underscores are required before and after bypagesize.

    II. Example

    Let's take the chapter template with fixed number of rows per page as an example to introduce how to realize horizontal non pagination.

    1. Report design

    Design the report as shown in the following figure, add a column after the pagination line. 

    截屏2021-02-04 下午4.56.48.png

    Note: adding a data column means that it exceeds the vertical black vertical line in the report body, which means that the data column has exceeded the page width and will be displayed in pages during preview.


    2. Effect preview

    You can see that the Paid in the last column is not displayed, as shown in the following figure:

    截屏2021-02-04 下午3.44.24.png

    Add after preview template URL &__ bypagesize__ =False, you can see the Paid column, which is also shown on the first page, as shown in the following figure:

    截屏2021-02-04 下午3.45.07.png


    3. Template download

    For completed templates, please refer to:

    %fr_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\ReportApplication\BasicApplication\nonPage.cpt

    Click to download the template:

    nonPage.cpt

    Note: when forced vertical pagination is set (pagination in condition property or other properties), the__ bypagesize__ The parameter is only for the case of horizontal non pagination. The setting of forced vertical pagination can view show fixed number of rows per page.

    Note:the implementation logic of __ bypagesize__ =false  is to set the width and height of the page to Integer.MAX_ The default row height and column width is about 3000 rows and 800 columns per page

    Note:when __ bypagesize__ =false, the paper background is not displayed.


    4. Preview effect of mobile terminal

    To set horizontal non pagination in app, you need to add parameters when adding reports. Click the plus sign and enter it in the name__ bypagesize__ , type string, enter false in the value:

    截屏2021-02-04 下午4.17.42.png

    The app preview effect is as follows:

    WechatIMG237.jpeg

    Attachment List


    Theme: Report Application
    • Helpful
    • Not helpful
    • Only read

    Doc Feedback