Engine API Basic Knowledge

  • Last update:  2020-12-17
  • I. Overview

    The FineReport designer and its platform should satisfy most of the demands, but still, it's impossible to meet all the individual needs. In this connection, FineReport has provided an abundant supply of APIs for developers to carry out in-depth development and control. To understand the core structure and API usage, developers should be equipped with elementary concepts which are shown in the diagram below:


    1607067795820799.png

    • TemplateWorkBook: the unexecuted WorkBook

    • ResultWorkBook: the result of the report object calculated by the Report Compute Engine (Executor). Items set up in the template, such as filters, conditions and styles, are all saved as calculated values into the result report.

    • WorkBook: the report template object, or the Java object corresponding to the cpt file. It is a container of WorkSheets, equivalent to creating multiple sheets in a single report.

    • WorkSheet: consists of any number of CellElements.

    For example, you can set up the cell background, border, font, font size, etc., add or delete cells in each WorkSheet, set page properties and add floating elements to each sheet, execute WorkBook to obtain the results and export to various formats, print, add toolbars, etc. It is for this reason that FineReport provides an extensive set of APIs for developers, assisting in the in-depth control of reports to fulfill their personalized requirements.

    II. Public API

     1607067818427899.png

    From the diagram above, we can see that FineReport mainly offers four function points for tailored development.


    1. Report Data Source

    While FineReport designer has diversified built-in data source interfaces, such as database, file and XML data source, developers can also generate their own data sources through Java programs by implementing the interface TableData.


    2. Set Cell Attributes and Report Attributes

    You can set up the cell properties, Web properties, parameters, page settings and attributes of other report objects, or freely control the display style of cells, buttons on the toolbar, the parameter panel, the assignment of parameter values, etc. All your individual needs will be taken care of.


    3. Custom Functions

    Despite a large number of basic functions FineReport has provided, you can customize your functions for specific business needs as well.


    4. Import/Export Reports

    You can create a new report object or load a cpt file to generate it. The processed report saved as a class web report can be accessed on the Web, and supports for exporting as files with various formats, such as Excel, PDF, Word and cpt files.


    Attachment List


    Theme: Secondary Development
    • 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