IMPORTANT: the RPV format was
originally intended to make entire reports. Even when it is possible to
use it to make the whole reports with this format, since RPX format
appeared the RPV format is not recommended to prepare the reports. This
format now is used mainly to prepare the templates that will be combined
later with the RPX. Additionally, the templates are prepared and edited
with the Rpv Visual Editor. We strongly recommend to use RPX format
combined with Rpv Visual Editor to create RPV templates. |
To prepare an Rpv report first we have to say is that the output of your program
must be redirected to a file instead to the printer.
Once we know this, we must create the report with the following structure.
Configuration
section.
This will be the first part of the report, in
which we define papersize, report_title, printer,
orientation, etc. We will recognize it because it is at
the very beginning of the file.
See configuration section to learn more.
[Header] section.
This will be the part of the report that will be
repeated for every page of it and we will recognize it by
its identification [header]. This
section is the indicated to place the titles, column
names, and any other information that must be present in all
the pages.
From version 5.3.3 is possible to change the HEADER as many times as needed
for the same report.
Every time that a new HEADER is declared, a new page will be created and the
new header will be repeated until the end of the report or until the header
is changed again.
[Footer] section.
From version 5.3.3 is possible to define a footer using the
[footer] section. It can also be changed as many times as needed until the
end of the report or a new footer is set.
[Data] section.
This wiill be the "body"
of the report. Its identification is [Data]
and like its name indicates, we must place all the data
inside. In this section we ussually "forget"
about pages, because that is a work that the application
must perform and not you. It is possible to have control over the pages anyway by inserting new pages at the moment you
want using the appropiate command to do it ({\NP}).
See also:
Rpv first example
|