RPV Reports / Usage Examples
 
Search in RpvSoftware.com
Go!                                         English    Español

What Rpv is

Rpv Reports 2024

Downloads

Training/Consultancy

Support

Purchase

Contact

 
Home > Usage Examples
RPX file format
Generating graphical reports from plain delimited files.
The RPX concept is based on delimited files, that combined with an existing template will let you prepare a professional report.

You can obtain the following report:

Screenshot

From this plain file:
Template=pupils1.rpv
|Data1|Gancar|Sarah|12|
|Data1|King|Daniel|09|
|Data1|Adler|Ron|12|
|Data1|Kollar|Karl|07|
|Data1|Gashi|Michael|08|
|Data1|Cruz|Wady|11|
|Data1|Foster|Pamela|10|


How do RPX files work?
Very simple: your application must generate a delimited file (the Rpx file that you see above) and after that, the application will combine it with the template.

Template file pupils1.rpv
$col_1=500
$col_2=2800
$col_3=5000
$col_4=7500
$col_5=8200
[HEADER]
   {f=arial;s=19;b=y}
   {$col_1;c=2}New Country School{\n;\n;\n}
   {s=14;c=0;b=n;$col_1} Pupils Report {$col_5;s=8;b=y}PAGE {pag;b=n}
   {\n;\n;\n;\n}
   {s=8;b=y;$col_1} Last Name{$col_2} First Name{$col_3} Age{\n}
   {line=500,8200;b=n;\n}

[DATA]
   [data1:@field1,@field2,@field3]
      {$col_1}@field1{$col_2}@field2{$col_3}@field3{\n}


In this case, the template is PUPILS1.RPV. The template is declared in the beginning of the Rpx file.

Using this concept is possible to generate different reports only changing the template. For example if your application must generate different reports for each customer, it will not be necessary to recompile your aplication. Only adjusting the templates will be enough.

How does the RPX file and the template integrate?
We observe on [data] section a sub-section called "data1". This sub-section contains three fields: @field1, @field2 y @field3.
Each field will take the value sent by the Rpx file.
Then, when we find this line on the Rpx file:

|Data1|Gancar|Sarah|12|

The program will take three values and it will assign them to @field1, @field2 and @field3.
This process will repeat each time that "data1" appears on the Rpx file.

Starting Rpv.exe to preview / print the report
To obtain the report on the screen, you application must execute the following:

C:\Program files\Rpv\Rpv.exe pupils1.rpx

(or the name of the Rpx file you have generated)

Home
What Rpv is
Rpv Reports 2024

Products
Rpv Reports 2024
Personalized edition

More...
Downloads
Support
Rpv Reports Online help
Rpv Visual Editor online help
Examples
/temp section
Videos




Copyright (c) 2001-2024 - Rpv Software. All rights reserved.