Embedded Reports

Movicon offers an "Embedded Report" resource that can be used to create reports to display historical data or project variables.  A Movicon Embedded report object is represented as a Screen object divided into five predefined sections called bands.   Different objects and symbols, such as displays and charts, can also be added and become part of the Report's features.

 

Your license must be enabled with the "Data Logger" option in order to use the Movicon Embedded Reports or with the "Alarm Statistics" option when using Reports for Alarm Statistics.

 

 

Embedded Report Resource

New "Textual Reports" or "Embedded Reports" can be added by using the following commands:

 

 

When you add a new Report object, it will open in the Movicon workspace as a screen. The Report will be created with A4 paper sizes, which will be expressed in pixels and calculated by Movicon based on the screen resolution, with a white background, whose color can be changed afterwards, and divided into seven Bands.  These bands also have their own default sizes which can be changed as appropriately needed. Each Band has a different role to play within the Report layout and will only be accepted for  printing if it contains objects in the final report.  The Bands are sectioned off with a separation line only in design mode to determine how much space can be used to add objects.  They will not be shown in the final report. The seven Bands in question are:

 

 

The Report Bands have a minimum size of 1 pixel and cannot be deleted or new ones cannot be added.  The Band/s you wish not to display/print on your Report, simply leave them empty.

 

Each Band can be configured through their  "Height" and "Keep in Separate Page" properties, as described in the corresponding paragraphs.

 

 

Report Objects and Displayed Data

Different object types can be inserted in Reports to display data with.  These objects are those contained in the "Toolbox Object" for Reports, which is made available when the Movicon Embedded report is opened in edit mode in the project's workspace.  These objects are a subset of those that can be inserted on Screen and which are provided with a subset of properties.  

 

Objects can also be copied and pasted from screens to Reports and viceversa. During this operation, Movicon will convert the object so that it is compatible with the new container in which it is inserted. For example, if you copy a "Button" that is not available for Reports from a Screen and paste if in a Report, it will be converted into a 'Radio button'.  Some objects, such as the  "List Box" and "Alarm Window" for example, cannot be inserted in a Report.  The copying and pasting these objects in Reports will fail and a message will be generated in the output window as follows:

 

Cannot understand object type "ListBox"

Nothing to Paste

 

Also those objects that can be inserted in reports such as Screens, can be grouped into composed Symbols then inserted into the "Symbol Library".

 

The following type of data can be associated and displayed in Report objects:

 

 

Values to be displayed in the Report objects can be inserted by editing the data entry fields manually or by simply selecting them from the  "Tag Browser Window" window.  In addition to the tab for selecting variables, there is also a  "DB Field"  tab from which you can select the database fields.

 

You can also manage some animation graphics for objects that can be inserted in the reports. This animations include Visibility, Transparency, background color, and others. This will allow you to animate specific objects in different ways based on the project's variable values.  Object animations can only be edited while the report is being created.  They cannot be edited when the report is displayed or printed.  The following animations can be used:

 

 

The animations above listed can also be used for objects in the "Details" section. In this case, as an animation variable, you can use the DataBase field instead of a variable and by doing so at each line displayed in the report, the object will be animated with the value of the current record. For example, let's suppose a display object has been inserted in the "Details" band to display a DataLogger field associated with the same Background Color animation as the one used for the DataLogger field. At this point, when the Report is generated, for example by extracting the last 10 records from the datalogger table, the ten display objects displayed in the Report will obtain a different set background colour based on the value shown.

 

Basic Expressions in objects

Basic expressions can also be inserted in object fields where variables are inserted.  In this case, however, it is not possible to use expressions in database fields (DB fields, i.e. DF:VAR00001]) or special fields (SP fields, i.e. [SP:time]), where only variables from the RealTimeDB can be used.

 

 

Report and Alarm Statistics

By using the Movicon "Embedded Reports", you can create reports to display data recorded by the project's DataLoggers and Historical Log.  Report's on project "Alarms" tables also allow reports to be created on alarm statistics, as described in the paragraph on "Alarm Statistic".  You will find some ready-made reports on alarm statistics available in the Movicon installation folder which can be customized or you can create new ones.

 

In certain cases, it is also possible to generate reports on variable trace tables.  In this case, the variable Trace must be set with the same DSN used by the DataLogger (or Historical Log).  In this way the variable table will be created within the same DataLogger database (or Historical Log).  When using Embedded Reports, the "DataLogger/Recipe" ( or Historical Log) item must be set as "Data Source Type", then the name of the DataLogger must be selected in the "Data Logger/Recipe" field (or a table in the "Event Log Type" field).  At this point, it is essential that a customized "Query Report" be inserted to extract data from the variable trace table and not from the DataLogger table (or Historical Log).  For example, if the variable being traced is called  "VAR00001",and the table has the same name as the variable, the query will be:

 

Select * From VAR00001 Order By LocalCol DESC

 

Caution! When using the SQL Server CE, therefore in a device with Windows CE, it is not possible to create reports on variable trace tables, due to the fact that the database file created for tracing variables is different from the DataLogger database file and the Historical Log database file .

 

Operations for editing Reports and multi-object selections

When editing Reports, you can execute specific operations by using the SHIFT key:

 

Selecting Report Properties: to display properties belonging to the Embedded Report resource in the Properties Window, simple click on the Embedded Report's name in the Project Explorer window or click on any Report band, in an area not containing objects, while keeping the SHIFT key pressed down.

Selecting Report Band Properties: to display properties belonging to the Embedded Report's Band, simply click on the band in an area not containing objects.

Multi-object Selecting: to select a number of objects contained in an Embedded report, as well as those belonging to different bands, simiply click on each object while keeping the CTRL key pressed down or by dragging the mouse while keeping the SHIFT key pressed down.

Modifying Band sizes: to change the band's height size:

 

 

 

Functionalities which are not available in Reports

The Reports are used to display values of historically logged data for specific time ranges which can then be printed or saved as a document. However, once the Report has been created, it can no longer be edited. It is for this reason that functions and properties which are made available when editing the Screen resource are not available when editing the Embedded report resource and the objects which have been added.

The procedures which cannot be performed and the functions that cannot be used in the Embedded Report resource are:

 

 

Advantages and Disadvantages of using Movicon Embedded Reports

When reports have to be created within the project, it will be necessary to evaluate whether to use the Movicon Embedded Reports or the "Report Designer" or "Crystal Report" external libraries based on the type of report to be created.  Below listed are the advantages and disadvantages of using the "Embedded Reports" compared to using the  "Report Designer" or "Crystal Reports":

 

Advantages:

 

Disadvantages:

 

 

See Also