Reports
This function is used to release the printing of a standard report from the software, by authorizing the entry of setup values, then releasing the launch of the print module (DLL Crystal Reports ™).
This function operates in a classic fashion with a left list presenting the report list, and a right-hand part that makes it possible to enter the print setups and to start the print.
It should be noted that the printing of a report can be released in two other ways :
- from the menu Print/group. In this case, the report to be printed is directly chosen from the report list of the corresponding group.
- from the object management, by using the functions File / Print or File / List (this supposes that the reports are assigned to the buttons : the function object customization is used to do this, and a dedicated function makes it possible to define the default values dependent on the context.
Prerequisite
Refer to documentation Implementation
Screen management
Entry screen
Once the report code has been selected, the following elements need to be entered :
- the report setups, in a grid whose lines are dependent on the report.
- the destination of the print, if any (or the detailed definition of the issue).
- additional layout setups (which can be predefined if a destination has been chosen).
Block number 1
Report code (field RPTCOD) |
It defines the report code to be printed. |
field RPTDES |
Enter the description of the relevant record. This long description is used as a title in screens and reports. |
Grid Parameters
No. (field PARNUM) |
Parameter title (field PARDES) |
It specifies the name of the parameter to be entered. |
Parameter type (field DEBFIN) |
First value (field VALEUR1) |
This grid makes it possible to assign the parameters necessary to print the report. These parameters can have the following characteristics : they can be of the start/end type (two values to enter) or of a unique type (a single value) they can be according to the cases, chosen from a selection window, or entered as a local menu (choose from a list : in this case, the start of the title can be entered, for instance Y for Yes) one of the parameters (predefined in the report) normally entered in the form of a range can be further broken down into several ranges. This is useful when a report must be printed, and that a large number of pages exist given the volume that will be generated (in general, this is a question that needs to be asked for reports that exceed 10,000 pages since Crystal Reports does not manage this volume of pagination well). In this case, it is better to define intermediate ranges to "sub-divide" the report. It is the case for instance for the General Ledger (GLGRP) report that can be sub-divided by account. If the sub-division of a report has been defined in the parameter in question (a column exists for that purpose in the report dictionary), a right click gives access, via the Sub-division choice, to an intermediate range entry window. The result of the print request will therefore be a chain of several reports ranging from the start of the first intermediate range, the first intermediate range of the second, etc..... up to the end of range of the last. |
Final value (field VALEUR2) |
Report destination
Destination (field PRT) |
It defines the destination of the report that is going to be calculated. If this field is assigned, most of the information of the next boxes is displayed. It should be noted that a destination code corresponds either to a printer, a file, a message, or a file containing the printing flow specified for a given type of printer. |
Deferred (field IMPDIF) |
This box is displayed only : it is checked if the printing has been requested in deferred mode via the corresponding button. It can be checked if the report is defined as being printable in deferred mode only. |
Output characteristics
Output type (field IMPRIME) |
This field defines the type of issue associated with the report. It can take the following values:
|
Server (field SERVEUR) |
This field, assigned if the print is not started as preview, makes it possible to define the print server to be used to launch a report. |
Printer (field IMPRIMANTE) |
This field is used to define the network name of the printer to which the report is sent. |
File (field FICHIER) |
If the file path is not expressed in absolute terms, an attempt is made to generate the file in the C:\temp folder first, if it exists, otherwise in C:\, or else in the client installation directory if the server is not assigned. If the server is assigned, the file will be generated in the client installation directory. |
Block number 5
Orientation (field PRTORIENT) |
Copies (field NBRCPY) |
This is used, in case of a printer output, to give a default value to the number of copies to be performed. |
Assembled copies (field ASSCPY) |
If several copies are requested, and the box is checked, the pages are assembled before printing the next exemplar. Otherwise, each page is repeated. For instance, for the printing of two copies of three pages :
|
Block number 6
Format (field FMTFIC) |
It defines the possible formats via the local menu 91. These formats include among others office formats (data processing and spreadsheet), generic formats ((HTML, ascii, PDF) and a format specific to Crystal Reports. |
Pages (field PAGDEB) |
This is used to restrict the pages to be printed between two numbers (if no value is set, all the pages of the report are printed). |
field PAGFIN |
Block number 7
Paper size (field FORPAP) |
Language (field LANGUE) |
When the report can be used in several languages, the language to be used is defined here. |
Other conditions
In the case of sub-divided prints :
- *in preview, the preview screen will open as many times as there are print sub-divisions, the print window will open once the final sub-division preview window has opened.
- in printing to file (choose Printer/file), the files are named from the name of the given file, followed by a consecutive number of 2 digits. For instance, if the file myfile.prn is defined, the generation will create the files myfile01.prn, myfile02.prn, …
The file help is active in print management. This makes it possible to call up a help defining what the report and the setup list are waiting for. It should be noted that this help exists only for certain reports (those where additional explications are considered necessary).
Batch task
This function can be run in batch mode, but no dedicated standard task is delivered to run it.
Specific Buttons
Memo |
is used to save the setup values entered, by giving a name to the memo. Remembering that the memo STD, if it exists, is automatically recalled when a print is launched. |
Recall |
makes it possible to recall a memo by giving its code. |
Del Memo |
Allows the deletion of an existing memo. |
Deferred
allows the deferring of the print launch. This assumes that printing is always carried out on a print server printer. An additional entry window opens then to confirm that the print has indeed been deferred and to display the required additional setups. Hourly constraints
Block number 2
|