Overview
Version
Report Server Version | App Version | HTML5 Mobile Display Plugin Version |
---|---|---|
11.0 | 11.0 | V11.0 |
Application Scenario
After setting the mobile homepage or directories on the decision-making platform, you can view the entire report system on mobile terminals.
You can preview individual templates created in the FineReport designer on mobile browsers or other HTML5 clients.
You can configure your server in an HTML5 client, for example, a mobile browser, to view the entire report project.
Function Description
After installing the HTML5 Mobile Display plugin, you can:
View the templates, directories, and homepage effects of report projects via URLs in HTML5 clients.
View the effect of a single report in an HTML5 client by scanning the QR code of the report URL.
PC-Side Configuration
Plugin Installation
You need to install the HTML5 Mobile Display plugin to view report projects in HTML5 clients.
You can obtain the plugin at https://market.fanruan.com/plugin/8bc0fc35-8403-4fbf-afe5-526bb2452932.
For details about installing the plugin in the designer, see Designer Plugin Management.
For details about installing the plugin on the server, see Server Plugin Management.
Network Environment Preparation
You need to ensure that the PC and mobile device are on the same network. The following two methods are available:
1. Connect the PC to the hotspot created by the mobile phone.
2. Connect the PC and mobile device to the same Wi-Fi network.

1. To ensure that the IP address of the PC is switched to that of the wireless network, unplug the Ethernet cable.
2. To access the project in different networks, you need to configure the proxy server. For details, see Proxy Server Configuration.
Account and Password Configuration
To view templates on mobile terminals, you need an account and the password to access the decision-making platform. For details, see Introduction to the Decision-making Platform.
Upon successful initialization, you will have a valid account to access the decision-making platform. This document takes the built-in user Alice (username/password: Alice/123456) as an example.
Homepage and Directory Configuration
You (the admin) can configure the mobile homepage and directories on the decision-making platform. If not configured, the homepage and directory will not be displayed. For details about the configuration method, see Homepage Management and Directory Management.
You (the admin) need to assign the View permission on the directory to users who require access to templates in that directory, or they cannot view the templates. For permission assignment, see View Permission on the Directory.
Accessing the Project in the HTML5 Client
You can view the effects of templates, directories, and the homepage in HTML5 clients via the corresponding URLs. The following table lists the URLs.
Page | URL |
---|---|
Directory and homepage | http://IP address:Port number/webroot/decision |
General report | http://IP address:Port number/webroot/decision/view/report?viewlet=xxx.cpt |
FRM report | http://IP address:Port number/webroot/decision/view/form?viewlet=xxx.frm |
http://IP address:Port number/webroot/decision/view/duchamp?viewlet=xxx.fvs |
If you want to disable the HTML5 effect when accessing the above URLs, you can suffix the backend parameter force_web=true to the URLs, as shown in the following examples.

http://IP address:Port number/webroot/decision?force_web=true
http://IP address:Port number/webroot/decision/view/report?viewlet=xxx.cpt&force_web=true
Viewing a Template in an HTML5 Client
Before viewing templates in HTML5 clients, you need to ensure that you have completed the configurations in the "PC-Side Configuration" section.

Before viewing templates in HTML5 clients, you need to ensure that you have completed the configurations in the "PC-Side Configuration" section.
1. Open the built-in template Detail Report_mobile.cpt in the path /demo/Phone/Mobile Report
Click Mobile Preview, as shown in the following figure.
2. The following page will be displayed in the PC browser after the click.


Attribute | Note |
---|---|
Detail Report_mobile | Report name |
Type | Report preview type, which is categorized into Preview and Data Entry ![]() |
QR Code | QR code for the report access link, which can be recognized by DataAnalyst and third-party browsers to access the template |
Copy Link | Report URL. If the IP address in the current URL is localhost, the IP address of the current network will be automatically obtained to fill the report URL. A prompt is displayed under the URL at the same time, saying "Ensure that mobile terminals are on the same network as the current PC." |
Scanning the QR Code Using an HTML5 Client
Open a mobile browser and scan the QR code to view the template, as shown in the following figure.

JS APIs and Plugins Supported by the HTML5 Client
The JS APIs and plugins supported are slightly different when you view reports in an HTML5 client and in FineReport on the PC. For details, see the links listed in the following table.
Item | Description | Document |
---|---|---|
JS | JS APIs for HTML5 Clients | |
Plugin | List of plugins supported by mobile terminals |
Notes
Problem description:
After you scan the QR code to preview the template on a mobile terminal, a prompt saying "Server Connection Failed" is displayed, or the webpage fails to load, as shown in the following figure.
Unconfigured Network Environment
Cause: The mobile terminal and the PC are not on the same network.
Solution: For details, see the "Network Environment Preparation" section.
IP Address Identification Error
Cause: The computer might have been connected to multiple networks within a short period, causing the IP address in the QR code URL to be mismatched with the actual IP address of the network to which the mobile device is connected.
Solution:
1. Input the command ipconfig /all in the Command Prompt window and press Enter.
You can view the actual IP address of the local computer, as shown in the following figure.
2. Compare the IPv4 address to the IP address in the report URL to see if they are the same, as shown in the following figure.
3. If not, modify localhost in the webpage URL to the correct IP address, press Enter to regenerate the QR code, and scan the new QR code using a mobile device to preview the template.
Firewall Protection
Cause: If you have confirmed that the operations were performed according to the document and the application configuration meets the requirements, the error may be caused by the Windows Firewall.
Solution: Disable Windows Firewall directly and proceed to preview templates on the mobile terminal. Alternatively, you can open the blocked port by configuring Windows Firewall according to the following steps.
1. Choose Windows Security > Firewall & Network Protection > Advanced settings > Inbound Rules > New Rule.
2. Set Rule Type to Port and Protocol and Ports to TCP and Specific local ports, enter 8075 in the text box, and save the settings, as shown in the following figure.