Word Report Export and Printing

  • Last update:  2023-12-10
  • Overview

    Version

    JAR Package Version
    Plugin VersionCustom Load Item VersionSystem RequirementMicrosoft Office RequirementFunctional 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.

     1.png

    2. Click Word Export Using New Plugin in the top left corner during preview, as shown in the following figure.

    iconNote:
    Do not use the built-in export function because it does not support Word resource export.

     2.png

     

    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.

     3.png

     4.png

     

    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.

    iconNote:
    The system does not support functions Set Printing Margin During PrintingNo Printing Setting Displayed in IE, and Needle Printing Optimization.

     5.png

    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.

     6.png

    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.

     7.png

    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.

     8.png

    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.

     9.png

    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.

    7.png

    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