Recent Changes - Search:

ProReports

edit SideBar

Respect my work!
If you are using commercially ProReports pay donate:

or

      PayPal.Me

or

        BTC: 

1MTFbBSKrocPK7G6GKfG8RoTw5N57WnnNa

If you have paid donate send me e-mail with Your data or transaction number to receive an access code to articles with limited access.

List of tags and attributes are available in PDF Internal reports

In section Template section of each element Internal PDF report You can use the following tags and attributes:

TagAttributeAllowed values
(sample values)
Description
<HEADER>--Starting a report header
<NEXT-HEADER>--Starting next section header
</HEADER>--The end of the header
<NEXT-ITEM>--Mark the start of the definition of the next item (for example table)
<TABLE>--Getting Started section of the table
</TABLE>--The end of the section of the table
<TR>--Starting line section
Attributes that can be used in the header section (tag <HEADER>) in tag <TR> of the table (tag <TABLE>)
 page-formatA3
A4
A5
letter
legal
Define page format. Default: A4
 orientationP - portrait
L - landscape
Defines whether the printout is to be vertical or horizontal
 marginsfor example:
0.5;0.5;0.5
Define page margins. Value is in the format <left>;<top>;<right> in cm. Default is 1;1;1
 foot-font-familytimesThe name of the font used in the footer of the report
 foot-textPage_{cb}/{nb}Define footer of report.
NOTE! Instead space use an underscore spaces !
{cb} – current page symbol
{nb} – number of pages completely
 foot-alignL – left
R – right
C- center
Defines the position of the feet
 foot-space0-5How many lines are empty before footer
 foot-imageThe file name specified in quotes, for example
„files/logo.png”
Adding an image in the footer at the bottom left
 foot-image-widthThe numerical value, for exmaple 30Image width. The original image will be scaled to the specified width. If you do not specify this parameter, it displays the image in its original size
 foot-image-xThe numerical value, for exmaple 10Offset X of image in the footer of the report
 foot-image-yThe numerical value, for exmaple 10Offset Y of image in the footer of the report
 add-font-stylestring „;<[B|I|BI]>;”
B – Bold
I – Italic
BI – Bold+Italic
for exmaple „;B;I;BI”
Add styles, if we use these in the report. Attribute can be used only once in the header section
 add-font-familystring ”<name_of_font>;<style>;<file *.ttf>;true”
np. „myarial;B;myarial.ttf;true”
Adding the font file. Details – see Adding your own fonts in the Internal report. Attribute can occur repeatedly in the head section
 userpassuserpass=MypasswordSet user password in PDF
 ownerpassownerpass=MypasswordSet owner password in PDF
 keybitskeybits=128
40
48
56
..
128 (default)
Set key size in bits
 permissionspermissions="allow_print;allow_copy;allow_modify;"
allow_print
allow_copy
allow_modify
allow_annot_forms
disallow_all
Set permissions in PDF
 attachmentsattachments="reports/file1.txt,file1.txt,File1;filepath2,filename2,filedesc2;"Add attachments to PDF
 attachpaneattachpane=true
false
Open attachments pane in PDF
Attributes that can be used in any table section (tag <TABLE>) within the tag <TR>
 idAlphanumeric value, for example id=r1Cache id for attributes. Id should be unique within the report
 heightThe numerical value, for example 8Defines the height of a row
 height-offThe numerical value, for example 8 (allowed negative values, for example -4)Defines offset of the height for row - move the row up or down
- negative value move row up
- positive value move row down
 bookmarkbookmark=text_of_bookmark;level;paneSet bookmark in PDF
text - label of bookmark (no spaces allowed, you must replace spaces with "_", for example text_of_bookmark)
level - level of bookmark (0..n)
pane:
true - display pane of bookmarks
false - hide pane of bookmarks
 border0 - without border
1 - border around of fields
or:
L – left border
R – right border
T – top border
B – bottom border
M- multiline mode support (parameter set together with LRTB)
Determines whether the fields in the row to be framed. You can combine several types of frames, for example border=TB resulting in a frame on the top line and the bottom. If you want to get multiline mode (data on several lines) use a value M, for example border=MTB.
NOTE! For border=1 multiline mode is automatically switched on.
This attribute placed in the tag <TR> makes it relates to each column in a row (to all elements <TD>) but can be replaced individually defined within the section <TD>
 brcolor0-255 (shades of gray)
or
color format #xxyyzz, for example #ff0000
Frame color data cells. You can give each side a different color. The order of the sides :LTRB - brcolor=#ff0000;$00ff00;#ff0000;#00ff00
 brwidthFraction, for example 0.3The thickness of the sides of the frame. You can specify for each side of a different thickness. The order of the sides: LTRB - brwidth=0.3;0.5;0.3;0.5 (value M must be set in tag border).
 font-familytimesThe name of the font
 font-sizeThe numerical value, for example 7Specifies the font size on the line. This attribute placed in the section <TR> makes it relates to each column in a row (to all elements <TD>) but can be replaced individually defined within section <TD>
 font-stylefor example
B - bold
Specifies the font style in a row. This attribute placed in the section <TR> makes it relates to each column in a row (to all elements <TD>) but can be replaced individually defined within section <TD>
 alignL – aligned to the left
R – aligned to the right
C - center
J- justify
Specifies the alignment of each column line. This attribute placed in the section <TR> makes it relates to each column in a row (to all elements <TD>) but can be replaced individually defined within section <TD>
 color0 – 255 (shade of gray)
or
color format #xxyyzz, for example #ff0000
Specifies the font color in a row. This attribute placed in the section <TR> makes it relates to each column in a row (to all elements <TD>) but can be replaced individually defined within section <TD>
 bgcolor0 – 255 (shade of gray)
or
color format #xxyyzz, for example #ff0000
or
-1 – transparent background
Specifies the background color of the row. This attribute placed in the section <TR> makes it relates to each column in a row (to all elements <TD>) but can be replaced individually defined within section <TD>
 nobr0 or 1 or 2 or 30 – disable the tag (as if it was not specified)
1 – no spacing from the next table (next table "appended" to the current)
2 - to force a new page
3 - to force a new page with a new numbering of pages
 hdlinkThe numerical value, for example 2Parameter prevents printing header in the last line of the page:
0 – off control (default mode)
1 – on control
n – check whether there is place for n+1 rows – there is no place we start on a new page
 hdrsts0 - header is hidden
1 - header is showed
Status of header.
This tag work only in <NEXT-HEADER> section:
0 – header is hidden
1 – header is showed
It's usefull in report with different headers.
 sethdrstssethdrsts=0;1;0;Change of initial header status.
Thanks to this tag we can change initial setting hdrsts for headers. From the next page the headers are shown according to the new status. We must set status for all elements in section <NEXT-HEADER>, for example if we have 3 elements we set sethdrsts=0;1;0; (first is hidden, second is showed and third is hidden to).
 hdrdecodefor example:
hdrdecode="{{account}},123;{{number}},321;"
Decoding symbols in headers.
Thanks to this tag we can change initial setting symbols used in headers. From the next page the headers are shown according to the new values of symbols used in headers. This feature give possibility to create report with different header, for example number of client in header.
</TR>--End of line sections
<TD>--Starting a cell section
Attributes that can be used within the tag <TD>
 idAlphanumeric value, for example id=c1Cache id for attributes. Id should be unique within the report
 widthThe numerical value, for example 20 (on page corresponds to about 2 cm)Specifies the width of the cell in mm. This tag must be used in first row defined table in each element <TD> of row
 border0 - without border
1 - border around of fields
or:
L – left border
R – right border
T – top border
B – bottom border
M- multiline mode support (parameter set together with LRTB)
Determines whether the fields in the row to be framed. You can combine several types of frames, for example border=TB resulting in a frame on the top line and the bottom. If you want to get multiline mode (data on several lines) use a value M, for example border=MTB.
NOTE! For border=1 multiline mode is automatically switched on.
 brcolor0-255 (shades of gray)
or
color format #xxyyzz, for example #ff0000
Frame color data cells. You can give each side a different color. The order of the sides: LTRB - brcolor=#ff0000;$00ff00;#ff0000;#00ff00
 brwidthFraction , for example 0.3The thickness of the sides of the frame. You can specify for each side of a different thickness. The order of the sides: LTRB - brwidth=0.3;0.5;0.3;0.5 (value M must be set in tag border).
 font-familytimesFont name
 font-sizeThe numerical value, for example 7Specifies the size of the font in the cell
 font-stylefor example
B - bold
Specifies the style of the font in the cell
 alignL – aligned to the left
R – aligned to the right
C - center
J - justify
Specifies the alignment of the text in cell
 color0 – 255 (shades of gray)
or
color format #xxyyzz, for example #ff0000
Specifies the color of the font in the cell
 bgcolor0 – 255 (shades of gray)
or
color format #xxyyzz, for example #ff0000
or
-1 – transparent background
Specifies the background color of the cell
 imagefor example „files/<name_of_file>.png”
lub
„temp/<name_of_file.png” (if the file generated function make_image)
Display the file in the cell
 image-widthThe numerical value, for example 30Determination of the width of the image. If it is different from the original, then there rescaling
 image-xThe numerical value, for example 5Offset x picture - an offset from the x-axis in the cell image data. Given the value of the upper-left corner of the cell
 image-yThe numerical value, for example 5Offset y picture - an offset from theyx-axis in the cell image data. Given the value of the upper-left corner of the cell
Attributes that allow you to draw polygons within the cell (field)
 drcolor-1 - transparent line
0 - 255 (shades of gray)
or color format #xxyyzz
The color of the line drawn. You can specify a different color for each line to be drawn, for example drcolor=#ff00ff;#ff0000;#0000ff
 drwidthFraction, for example 0.3The thickness of the drawn line. You can specify a different thickness for each line to be drawn, for example drwidth=0.3;0.1;0.3
 off-xThe numerical value, for example 3Offset x drawn starting point of the line. Given the value of the upper-left corner of the cell
 off-yThe numerical value, for example 3Offset y drawn starting point of the line. Given the value of the upper-left corner of the cell
 pointsfor example
0,0;3,3;4,4
Coordinates of the end points of a line drawn
</TD>--The end of the section of the cell


This page may have a more recent version on pmwiki.org: PmWiki:RepIntPDFZnacz, and a talk page: PmWiki:RepIntPDFZnacz-Talk.

Edit - History - Print - Recent Changes - Search
Page last modified on December 12, 2019, at 07:47 AM EST