Open PDF version of report with URL

  • Last update:  2022-01-07
  • I. Overview

    1. Problem description

    Adding the parameter &format=pdf after the URL of the preview template can export the file in PDF format. If you want to display the PDF file directly on the browser side instead of popping up the download dialog box after entering the URL, how can this be achieved?


    2. Ideas

    It can be achieved by adding &format=pdf&__embed__=true after the previewed template.

    II. Operation steps

    1. Preparation

    1) Browsers with IE or IE core (such as: 360 Safe Browser-Compatible Mode, 360 Speed Browser-Compatible Mode, Sogou Browser-Compatible Mode, Window of the World Browser, Maxthon Browser, etc.).

    2) Install Adobe Reader software.

    Reason: When viewing PDF files on the web, only IE and IE core browsers have ActiveX controls.

    Note: If it is a non-IE kernel browser, you need to manually open it after downloading, and it cannot be displayed directly in the browser.


    2. Effect preview

    Take %FR_HOME%\wenapps\webroot\WEB-INF\reportlets\GettingStarted.cpt template as an example to see the effect.

    Open the built-in server, enter in the browser: http://localhost:8075/webroot/decision/view/report?viewlet=GettingStarted.cpt&format=pdf&__embed__=true, click Enter, the effect is as shown in the figure below:

    1.jpg

    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