Accumulate page code when printing

  • Last update:April 25, 2021
  • I. Description

    The report page number is accumulated when a quantity preview or mass printing report is accumulated, as these reports are independent, nothing associated with bulk preview or mass printing is just to save work, do not have a preview template or print template, so hope page number is The pages of these reports are independent.

    II. Solution

    Add &__cumulatepagenumber__= false after the URL printed in batches.

    Note: New print does not support, only support old PDF print, new and old print interface details. Click JS call FR print method

    III. Example

    As: When printing or previewing two report templates, the page number will start from the first page when printing or previewing the second template.


    1. Each report sets the number of pages displayed

    Such as: k1.cpt, in addition to the contents of the report, either any cell, enter the formula: Display the current page and the total number of pages. For example, as follows:

    1.png

    Such as: k2.cpt, the same. As follows:

    2.png

    If both templates are placed under reportlets, the input addresses in the URL are as follows.


    2. Effect preview

    1) Do not accumulate the page code effect

    Such as: Start our built-in server, preview these two templates, enter http://localhost:8075/webroot/decision/view/report?viewlets=%5B%7Breportlet%3Ak1.cpt%7D%2C%20%7Breportlet%3Ak2.cpt%7D%5D&__cumulatepagenumber__=false

    Note:%5B%7Breportlet%3Ak1.cpt%7D%2C%20%7Breportlet%3Ak2.cpt%7D%5D represents the result of executing JS code encodeURIComponent("[{reportlet:k1.cpt}, {reportlet:k2.cpt}]") .

    Note: High versions of Tomcat does not support [] / {} special symbols, the URL needs to use the encoded URL, otherwise it will not take effect.

    Preview, the effect is as follows:

    The first page of the first template (k1.cpt) is as follows:

    3.png

    The second page of the first template (k1.cpt) is as follows:

    4.png

    The second template (k2.cpt) is the third page, as shown below:

    5.png

    As seen above, it is the page number of the second template, still starting from the first page.

    2) Accumulate the page code effect

    The address bar is not adding &__cumulatepagenumber__= false, its effect is the effect of the page number, as follows:

    The current page of each page of the first template (k1.cpt) is also as follows, and the total page number is 3.

    The second template (k2.cpt) is the content of the third page, which is shown below:

    6.png

    When you see, the page number of the second template is accumulating the page number of the first template, it is not from the first page to recalculate the current second template page number.


    Attachment List


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

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy