Documente Academic
Documente Profesional
Documente Cultură
9.2.1 Introduction
Crystal Report is a user-friendly powerful instrument for the creation of graphical bases intended for data lists, tables,
reports and anything else required to present the database data tables realised with the Movicon recording instruments.
The report pages realised with Crystal Report will have the .rpt extension. These reports must be generated using this
instrument. It must be purchased separately and will be connected to the data tables generated with Movicon. Movicon
supports the 10.0 or successive version of Crystal Report,
9.2.2 Creation of a Report using Crystal Reports
Below fnd the procedure used to obtain data reports via the integration of Crystal Reports with Movicon. Remember that
the version required of Crystal Reports is 10.0 or successive. It is supposed that a project must be created containing a
Data Logger that records three Movicon system variables, in order to simulate a random distribution of values recorded at
intervals of fve seconds from each other. The project must be started at least once (with ALT-F12 or appropriate run button)
to allow Movicon to create the database. The next step envisions the use of Crystal Reports for the realisation of the report
requested.
A dialogue window will be shown on start-up of the program, which requests what type of report to create: select Standard
and click on Ok to continue.
Crystal Reports: New Project
76 76
THEODORICO Rev8 - Ser. N 38A1A - 38A1G
SOFTWARE MANUAL - Rev. 0
Now a list of types of connections to database will be shown, organised according to a tree diagram: expand the Create
new connection node and select ODBC (RDO). At this point a list of connections already existing in the computer will
appear, among which there will also be that created previously by the project, which will have the name defned as Name
Project_DLR. By clicking on Next the User Name and Password will be requested for the database: leave these felds empty
and click on End.
Crystal Reports: Create New ODBC Connection
At this point, by selecting the pre-selected ODBC connection, the list of the names of the tables present inside will be listed
(in the example in the fgure, the table is called LogExample, as the name of the DataLogger). Click on the button with the
right hand arrow to add the element to the list of the tables selected and click on Next.
Crystal Reports: Add table
In the next page the felds present in the table previously selected will appear in the list on the left. By clicking twice on the
felds with the left key or selecting them and clicking on the right arrow, the felds will be added to the right hand list that
contains the felds of the data base, which will be efectively shown in the report.
77 77
THEODORICO Rev8 - Ser. N 38A1A - 38A1G
SOFTWARE MANUAL - Rev. 0
Crystal Reports: Add Fields to be displayed
Clicking on Next there is the possibility of grouping the data connected according to one or more columns and, on the next
page, to defne the flters on the data. Finally, it is possible to select a template for displaying the data on the last page. To
create a simple list without any graphical element, select No template from the list.
Crystal Reports: Select Template
Clicking on End the report that has just been created will appear, via the guided procedure. Using the functions of Crystal
Reports it will now be possible to adapt the report to personal requirements, adding information to the data or calculations
such as sums of the values, averages and standard deviations (See the Crystal Reports documentation for information). Save
the report obtained in a fle to end the creation procedure.
Crystal Reports: Result
It is now necessary to connect the report fle to the Movicon Data Logger. Open the project and display the Data Logger
Properties window in question. In the General properties, click on CRW File and select the Crystal Reports fle (.rpt) created
previously. Clicking on Ok the name of the fle will be displayed among the properties of the Data Logger. In this way, it will be
possible to display the report directly from the synoptic also during the execution phase. To do this, add a button to the synoptic
and select the Report command, specifying display as action and the name of the Data Logger as the object. In the execution
phase, by clicking on the button, the Movicon Report Viewer will be opened.
Movicon: Choice of the File Report
2011 COMECER S.P.A. | ALL RIGHTS RESERVED TUTTI I DIRITTI RISERVATI
Via Maestri del Lavoro, 90 - 48014 Castel Bolognese (RA) Italy
http://www.comecer.com E-mail: comecer@comecer.com
phone (+39) 0546 656375 - fax (+39) 0546 656353