The following sample project files and data are included with the Evaluation Version of XSL Report Designer V2.0. The sample files demonstrate the wide range of capabilities available from XSL Report Designer, including; tables, barcodes, expressions and graphics.
Description of sample files.
The following functins are used in the sample files:
| Function | Discription |
|---|---|
| Report Header/Report Footer | Demonstrates how Report Header/Report Footer are used. |
| Page Header/Page Footer | Demonstrates the use of Page Header/Page Footer. |
| Font style (Font, Bold, Italic, Size, Underline, Color) | Each font style can be specified for an object. |
| Background color | Background color can be specified for an object. |
| Horizontal alignment/Vertical alignment | Shows how you can arrange the position of each object (In a left/righ/center or top/bottom/middle alignment). |
| Border (Style, Width, Color) | You can choose the style, width, and color for the border of each object. |
| Expressions | A total of a vertical, horizontal numerical value, a current date, and the page number, etc. are output by expressions. |
"order-fix.rxl" is a sample of fixed layout type. The layout for a typical form for printing.
On the GUI of XSL Report Designer, you can put each object on the fixed position in the area that is called a page.
(On the GUI screen, the page looks like a piece of paper.)
The part where the margins and page header / footer were excluded from the paper is used as a text area.
The page header / footer and the report header / footer can be specified. Report header / footer always changes pages.
This is effective for applying a cover page to the report.
When you choose "Static" in "Kind", the static character strings are always display.
In the sample file, "Order Form" , "Antenna House,Inc." and so on are static.
When you choose "Field" in "Kind", the data specified by XML path will be embedded.
In the sample file, you can see "A" for the field. The cell of table is also the same.
When you insert a new Table Object, a dialogue for Table setup is shown.
In this sample, we chose "Fixed" table which has the fixed number of rows (8) and columns (6).
You can see it on "Table setup" dialogue opened from "Setting" of "Table edit" of "Object" menu.
Combining with "sample-data.xml", this project file is outputted as follows from FO file.
By embedding coresponding data from the XML file, "Field" area now have the data of XML file.
The Fixed table always keeps the specified number of lines and columns.
If there are eight records in the repeat path, eight rows are full.
When there are more than eight lines, the additional line will not be printed if the table is fixed.
As you see in the sample of "order-fix2.rxl", one record of the data base can be composed of multiple pages.
For instance, in the order form, the customer's information is on the first page ,
and the second piece can be made as the form of details and so on.
"order-flow.rxl" is the sample of Flow type.
This is the layout type where the object expands and contracts automatically based on the inside data.
You can arrange each object in the area that is called a frame. Multiple frames can be put in the report or form. Objects can then be grouped within frames.
By making objects into a group, all objects in that group are able to flow as one mass.
The page header / footer and the report header / footer can be specified.
The layout can not be composed of multiple pages, but rather multiple frames that can make numerous pages in the formatted output.
In this sample, there are 5 frames. One is for the "Company Profile" and next is for the data of "November Customers".
The 3rd, the 4th and the 5th frame are in the "subrepeat" and are for the order information and the orderlist (table) of
"November Customers". The 5th frame is used for interval adjustment of next repeat.
By seeing the "Objects tree" it is easy to see the entire structure of this sample.
The first two frames appear once and do not repeat, while the other 3 frames are repeatable depending on the number of orderlist in the XML file.
We also use a "Variable" table which has 6 columns. How many rows appear depends on the XML data.
Combining with "sample-data.xml" this project file is outputted as follows:
As you see above, the table expands and contracts according to the number of lines of data.
The position of the objects thereafter changes according to the expansion and contraction of the preceeding object.
That is why it is called the flow type because of the objects flow on the page.
Label type looks a lot like a Fixed type. A big difference is that Label type can divide the page vertically and horizontally and the objects are arranged in the one area. It is used when multiple records are sequentially printed on one form, The object of a fixed position and a fixed size can be arranged.
In the sample project file, "label.rxl", the page was devided in 5 lines (rows) and 2 columns. You can specify those in the dialogue of "Page setup".
Combining with "sample-data.xml", this project file produces the following output:
Barcode object is used for the print of the bar-code. You can put Barcode object, then specify the type and the font etc. of the barcode in the Properties window.
Combining with "barcode-data.xml", this project file produces the following output:
By setting the expression, you can easily set a complex expression for the date, the page number and many automatic operations such as calculating the total of a column. Please refer to the "built-in Functions" for the available expression.
This sample uses the following built-in functions.
Combining with "seiseki.xml", this project file produces the following output:
Control break is a function that totals the content of cells by the specified "Column number to judge for break".
And when data that has the same content consecutively in the same column is used, you can bring those cell together and output it.
This function is called Grouping. In the Set Grouping property, "Variable" groups and merges cells when the same data appears in the consecutive cell of a column.
"Fixed" groups cells by the number of Rows property specified under Set Grouping. In this case, cells are not merged,
and the border line is drawn.
Combining with "ctrl-break.xml", this project file produces the following output: