It is possible to extend report template functionality with help of VBA scripts. You can use the standard Word events. Additionally, during report generation, IRT Analyzer calls these macros (if they are present in the template):

·ThermoReportStarted: called after report document is created;

·ThermoReportFrameAdded: called after a new section (possibly with several images) is added to the report document;

·ThermoReportFinished: called after all data is sent to the report.

To add macros to your template, open a report template for editing. Press Alt+11 to open Visual Basic editor, add these subroutines to TemplateProject:

 

Sub ThermoReportStarted(Doc As Document)

    'Your code here

End Sub

 

Sub ThermoReportFrameAdded(Doc As Document, FrameSectionIndex As Integer, NewSection As Boolean)

    'Your code here

End Sub

 

Sub ThermoReportFinished(Doc As Document)

    'Your code here

End Sub