I. Description
Electronic signature is a form of electronic signature, which is commonly known as a seal. The electronic signature is a picture with a transparent background and hopes to be embedded in the report, as shown in the following figure:
The following will introduce four methods for embedding electronic signatures in reports.
II. Method1: Insert an image into a cell
Select the cell and click the Select Image button on the toolbar. After selecting the picture, select the adaptation option. The picture will be adaptively adjusted to the cell, as shown in the figure below:
Save the template and preview it to see the display effect of the electronic signature.
III. Method 2: Set up electronic signature in HTML language
Cells support HTML to display content, so HTML language can be used to set electronic signatures.
For example, the electronic signature picture is named gongzhang.png under the webroot folder of the FineReport installation directory, and the cell content is set as:
<img src="1.png"/>
or
<div style="background:url(1.png) no-repeat;width:151px;height:151px"></div>
Select the cell, set other attributes, and Display Content is: Display By HTML, as shown in the figure below:
Save the template and preview it to see the display effect of the electronic signature.
IV. Method 3: TOIMAGE function to set electronic signature
Select the cell and insert the formula TOIMAGE("1.png",false,151,151), as shown below:
Note: For the description of the TOIMAGE function, please click Display image in cell (Toimage).
In the cell property panel on the right side of the report, select Style>Custom Style>Alignment, and change the layout of the picture to adapt, as shown in the figure below:
Save the template and preview it to see that the electronic signature is successfully displayed.
V. Method 4: Insert images with floating elements
Click Insert>Floating Element>Insert Picture, click Select Image, and set it to Adaptive, as shown in the figure below:
After selecting the picture, the following picture is displayed on the template:
Report Embedded Electronic Signature Summary
Save the template and preview it to see that the electronic signature is successfully displayed.
Note: When using floating elements, you can place them anywhere in the template. If there is a situation where the electronic signature must cover the time below, you can only use the floating element method.
VI. Report embedded electronic signature summary
The above is the method of embedding the electronic signature of the report. Please note that when these methods are exported, some methods are not supported for export, and the picture will be broken or the picture area will be blank. For details, please refer to the following:
Method | Export Word | Export Excel | Export Image | Export |
Insert Image | √ | √ | √ | √ |
HTML language | ||||
TOIMAGE function | √ | √ | √ | √ |
Floating Element | √ | √ | √ |