14.5 HTML Report

The HTML Report plug-in is a sample implementation and is intended to be used as reference for implementing own HTML Report implementations.

The HTML Report plug-in is another sample plug-in and very similar to the HTML plug-in. It generates an HTML file which consists of the Ascolog logo at the top, followed by the active Graph windows and at the bottom the log records are displayed in an HTML table in the same way as in the HTML plug-in (see figure HTML table).

Record definition for HTMLReport conversion
Record definition for HTMLReport conversion

The approach is basically the same as for the HTML conversion so please also read the section HTML. However, there are two exceptions (see figure Record definition for HTMLReport conversion). In the Conversion dialog the Encoding field has to be set to HTMLREPORT. The File name field has to specify the path to the “report.ini” file which is located in the “PLUGIN_CFG” folder and provides the configuration settings for the plug-in. The “PLUGIN_CFG” folder is a subfolder of the data folder and depends on the installation method that was used. How to locate the data folder is explained in How to Install. In the example Record definition for HTMLReport conversion Ascolog Insight was installed with the setup method.

The file name for the HTML output must be specified in the “report.ini” and NOT in the Conversion dialog. In the “report.ini” file there is a configuration setting called filename for this. The path is relative to Ascolog Insight's data folder.

The default “report.ini” file has the settings listed in example Default content of "report.ini".

[HTMLREPORT]
filename=.\temp\html\report.html
logo=AscologLogo.png

 

[GRAPH1]
title=Graph1
;width=0
;height=0
;start_time=2014-01-01 00:00:00,000
;end_time=2015-01-01 00:00:00,000
;y_min=0
;y_max=100

 

[GRAPH2]
title=Graph2
;width=0
;height=0
;start_time=2014-01-01 00:00:00,000
;end_time=2015-01-01 00:00:00,000
;y_min=0
;y_max=100

 

[GRAPH3]
title=Graph3
;width=0
;height=0
;start_time=2014-01-01 00:00:00,000
;end_time=2015-01-01 00:00:00,000
;y_min=0
;y_max=100

 

[GRAPH4]
title=Graph4
;width=0
;height=0
;start_time=2014-01-01 00:00:00,000
;end_time=2015-01-01 00:00:00,000
;y_min=0
;y_max=100

 

[TABLE]
title=Table1

Default content of "report.ini"