Overview
Version
JAR Package Version | Plugin Version | Custom Load Item Version | System Requirement | Microsoft Office Requirement | Functional Change |
---|---|---|---|---|---|
2022/05/30 | 2.1.1 | / | Windows system for template creation. No system requirement for template export or print after template mounting. | The latest version | / |
Function Description
1. Export: After completing a Word report, you can preview the final effect of the Word report template and export it without changes. You can still edit the referenced table resource after export. In addition, you can also export the Word template as the Word or PDF file through URL.
2. Printing: To meet the printing needs of daily office work, FanRuan provides the Word Report plugin, which allows you to print templates through the No Client Printing or JS functions, reducing the repetitive work of printing reports after exporting them to the local computer.
Export
Export Without Changes
You can export reports as Word files without changes during preview based on the following steps.
1. Choose Template (on the designer menu bar) > Web Attribute, click Data Entry Setting, set Following Settings to Set for This Template Separately, and add Export Using New Plugin to the toolbar, as shown in the following figure.
2. Click Word Export Using New Plugin in the top left corner during preview, as shown in the following figure.

3. If you set Display Format During Preview/Export to Image in the referenced table resources, you can edit tables after export, as shown in the following figure.
URL Export
You can export templates as Word or PDF files through URL after installing the Word Report plugin.
You can add Parameter name=xxx at the end of URL to export parameters in a template. You do not need to add if the template has no parameters.
You can add &format=plugin_docx at the end of URL to export templates as Word files.
You can add &format=plugin_pdf at the end of URL to export templates as PDF files.
Printing
No Client Printing
Take the file test.cpt as an example to introduce how to print a report on the preview page.
You can download the sample file test.cpt.
1. Open the prepared file, choose Template > Print Setting, set Following Settings to Set for This Template Separately, and select No Client Printing, as shown in the following figure.

2. Choose Template > Web Attribute, click Data Entry Setting, set Following Settings to Set for This Template Separately, double-click Print to add it to the toolbar, and click OK, as shown in the following figure.
3. Save the report, choose Data Entry Preview from the drop-down list of Preview, and click Print on the toolbar to print the report, as shown in the following figure.
JS Printing
1. Open the prepared file, choose Template > Web Attribute, click Data Entry Setting, set Following Settings to Set for This Template Separately, add Custom Button to the toolbar, and click OK.
2. Double-click Custom Button, set Widget Alias to Custom Printing Button, add a custom event, add JS codes, and click OK, as shown in the following figure.
Java codes are as follows:
var printurl="http://localhost:8075/webroot/decision/view/report";var reportlets ="[{reportlet: 'test.cpt'}]";var config = {printUrl : printurl,isPopUp : false, // Determines whether the setting box pops up. true: yes; false
: no. data: { // multi-template format: [{reportlet: 'name.cpt', a: 'a1'}, {reportlet: 'name.cpt', b: 'b1'}] Same templates are displayed in multiple pages.// Single template format: [{reportlet: 'name.cpt', a: 'a1', b: 'b1'}] Same templates are displayed in one page. reportlets: reportlets // the template list needing to be printed },printType : 0, // 0: No Client Printing
.};FR.doURLPrint(config)
3. Save the report, choose Data Entry Preview from the drop-down list of Preview, and click Print on the toolbar to print the report, as shown in the following figure.