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 appropriately as needed. Each Band has a different role to play within the Report layout and will only be accepted for printing if it includeds objects in the final report.  The Bands are separated by a 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 added to. The Band/s that 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 respective paragraphs.

 

 

Report Objects and Displayed Data

Different types of objects can be added to the Reports to display specific data.  These objects are those found in the "Object Toolbox" for Reports.  This toolbox is available when the Movicon Embedded report is opened in edit mode within the project's workspace.  These objects come with a set of properties and belong to a subset of objects that can be inserted on Screen.  

 

Objects can also be copied and pasted from screens to Reports and viceversa. During this operation, Movicon will convert the object to make it compatible with the new container in which it has been inserted. For example, if you copy a "Button" that is not available for Reports from a Screen and paste it 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 not work and a message will be generated in the output window as follows:

 

Cannot understand object type "ListBox"

Nothing to Paste

 

 

In addition, objects that can be inserted in reports, such as Screens for instance, can be grouped together as composed Symbols and then inserted into the "Symbol Library" for later use.

 

The following types 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 used to select variables, there is also a  "DB Field"  tab which you can use to select the database fields.

 

You can also use different types of animation for those objects that can be inserted in the reports. These types of animation include Visibility, Transparency, background color, and others. This will allow you to animate specific objects differently according to which of the project's variable values has been acquired.  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 listed above can also be used for objects in the "Details" section. When doing this, you can use the DataBase field instead of an animation variable so that the object will animate with the value of the current record for each line displayed in the report 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 the 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

The Movicon "Embedded Reports", can be used to create reports on data recorded by the project's DataLoggers and Historical Log.  Reports that are created for project "Alarms" can also be created for alarm statistics, as described in the paragraph on "Alarm Statistic".  Predefined reports on alarm statistics are provided in the Movicon installation folder and they can be customized or news ones can be created.

 

Reports on variable trace tables can also be created.  In this case, the variable Trace must be set with the same DSN used by the DataLogger (or Historical Log).  By doing this, 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", and 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 will be necessary to insert a customized "Query Report" 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 should then be:

 

Select * From VAR00001 Order By LocalCol DESC

 

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

 

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, simply 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 them with 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 documents. 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 along with the objects which have also been added.

The procedures that 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 which of the report type to use between the Movicon Embedded Reports, the "Report Designer", or the "Crystal Report" external libraries based on specific needs. Below listed are the advantages and disadvantages of using the "Embedded Reports" compared to the  "Report Designer" or "Crystal Reports":

 

Advantages:

 

Disadvantages:

 

 

See Also