Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Supported tokens by RTF
 TokenNotice
Text properties
Bold \bTurn on bold
\b0Turn off bold
Italic \iTurn on italic
\i0Turn offitalic
Underline \ulTurn onunderline
\ul0Turn offunderline
StrikeThru  \strikeTurn onstrikethru 
\strike0Turn off strikethru
Superscript\superTurn on superscript
Subscript\subTurn on subscript 
Color\cfN

\cf1 - index in color table

Back Color \cbN

\cb1 - index in color table

\chcbpatN\chcbpat1 - index in color table
Font Name\fN\f0 - index in font table
Font Size \fsN\fs40  - font size*2
Code page\ansicpgN\ansicpg1252
Paragraph properties
Margin top\sbN\sb420 - space before paragraph in twips
Margin bottom\saN\sa420 - space after paragraph in twips
Margin left\liN\li420 -  space from left paragraph in twips
Margin right\riN\ri420 -  space from right paragraph in twips 
Line height \slN\sl1500  -  line height paragraph in twips/multiple 
\slmultN\slmult0 - lne height \slmult1 - Multiple line hieght
Text alignment   \qlLeft alignment 
\qrRight alignment 
\qcCenter alignment  
\qjBlock/justify alignment  
Tab stops\txN\tx2000 - left tab stop in twips 
 \tqr\tqr\tx2000 - right tab stop in twips  
 \tqc\tqc\tx2000 - center tab stop in twips  
Back Color \cbpatN

\cbpat1 - index in color table

Text indent\fiN\fi420 -  first-line indent in twips
Tab size \deftabN\deftab -  first-line indent in twips
Border         \brdrcfN\brdrcf1 - index in color table 
\brspN\brsp200 - space between boder and text in twips 
\brdrwN\brdrw20 - border width in twips 

\brdrnone

None border

\brdrdot

Dot border

\brdrdash

Dash border 

\brdrdashd

Dash dot border

\brdrdashdot

Dash dot border 

\brdrdashdd

Dash dot dot border 

\brdrs

Solid border 
Control tokens
Tabelator \tab


CRLF\line 
Paragraph \par 
 \pard Reset paragraph properties 
 \plain Reset text properties 

...

Extended tokens by XFRX    
 TokenNotice CSS attributes
VFP Expression\vfpev {\vfpev {DTOC(DATE())+" "+TIME()}} 
VFP Expression with conversion format

{\vfpev {\pictureformat99.99} {\xlsf#0.00} {10}}

 
Expand by source alias \template  \par\pard{\template {alias_expression}} 


  
Rectangle<rectangle><rectangle style=""></rectangle> 

float; margin; width; height; border-width; border-style; background-color; curvature; color; left; right; 

Image<img><img>field</img> <img style="">field</img>

float; margin; width; height; stretch; position; left; right; 

Horizontal line<hr><hr></hr> <hr style=""></hr> 

float; margin; border-width; border-style; width; position;  left; right;

Vertical line<vr><vr></vr> <vr style=""></vr> float; margin; border-width; border-style; height; position;  left; right;
Quote<quote><quote></quote> <quote name=""></quote>text-align; margin; padding; border-width; border-style; background-color; tab-stops; curvature; text-indent; direction; charset; tab-size; color; font-name; font-size; font-style; font-weight; text-decoration; line-height; 
Code<code> 

text-align; margin; padding; border-width; border-style; background-color; tab-stops; curvature; text-indent; direction; charset; tab-size; color; font-name; font-size; font-style; font-weight; text-decoration; line-height; 

 
Preformated text<pre> 

text-align; margin; padding; border-width; border-style; background-color; tab-stops; curvature; text-indent; direction; charset; tab-size; color; font-name; font-size; font-style; font-weight; text-decoration; line-height; 

 
Ordered list<ol><ol style=""> <li>First</li> <li>Second</li> </ol>

list-style-type; text-align; margin; padding; border-width; border-style; background-color; tab-stops; curvature; text-indent; direction; charset; tab-size; color; font-name; font-size; font-style; font-weight; text-decoration;  

Unorder list<ul><ul style=""> <li>First</li> <li>Second</li> </ul>

list-style-image; text-align; margin; padding; border-width; border-style; background-color; tab-stops; curvature; text-indent; direction; charset; tab-size; color;  font-name;

fontt-size; font-style; font-weight; text-decoration;

<list><list style=""> <li>First</li> <li>Second</li> </list>

list-style-image; text-align; margin; padding; border-width; border-style; background-color; tab-stops; curvature; text-indent; direction; charset; tab-size; color;  font-name font-size; font-style; font-weight; text-decoration;

Item list <li>  <li style=""> </li>

list-style-image; text-align; margin; padding; border-width; border-style; background-color; tab-stops; curvature; text-indent; direction; charset; tab-size; color;  font-name; font-size; font-style; font-weight; text-decoration;

Hyperlink<a href=""><a href="static address"></a> <a href="'string expression'"></a> <a href="field"></a>  
 <a name=""><a name="#static name"></a> <a name="'#string expression'"></a> <a name="'#'+field"></a> 
Tabelator <tab/><tab/> 
<tab=/>X count of tabelatorsCode page <fcp=X fontcharset=""><fcp=42></fcp> <fcp=65001 fontcharset="238"></fcp>  
Options block   <options> <options>TF_LIST_ITEM_CHAR=CHR(168)</options> 
Table <table>

<table> <tr><th></th><th></th></tr> <tr><td></td><td></td></tr> </table>

 

Expand row by source alias  template="alias_expression"  <table> <tr><th></th><th></th></tr> <tr template="alias_expression"> <td><vfpev>Expression</vfpev></td> </tr> </table> 
<ul> <li template="alias_expression"><vfpev>Expression</vfpev></li> </ul> 
<p template="alias_expression"> <vfpev>Expression</vfpev></p>  

...

windows-1250 | windows-1252 |

% (only for width, height, left, top, right, margin, padding, font-size, line-height)

Unit vh is meaningful for fixed height of textbox in report.

Units vw,vh,vmin,vmax was add in XFRX 17.1.1
CSS attributes
NameValuesNotice
leftsize | percent10pt or 12px or 1cm
10% 
topsize | percent10pt or 12px or 1cm
10% 
widthsize | percent 10pt or 12px or 1cm
10% 
heightsize | percent 10pt or 12px or 1cm
10% 
rightsize | percent 10pt or 12px or 1cm
10% 
   
positionstatic | relative | absolute | relative-paragraph
stretchclip | isometric | stretch
curvaturenumberwithout units
floatleft | right | text-top-bottom | text-rectangleFor values left | right can be position only static.
For  values text-top-bottom | text-rectangle can be position only absolute | relative-paragraph.
   

list-style-type

decimal |
decimal with bracket |
upper roman |
upper roman with bracket |
upper latin |
upper latin with bracket |
lower latin |
lower latin with bracket |
upper roman |
upper roman with bracket

 

list-style-image

url('')url('filename.png')
'expression'
   charsetwindows-1251which knows VFP
windows-42 is for symbol font
directionltr | rtl
font-name"Arial" | "Symbols" etc. 
font-sizesize10pt or 12px or 1cm  
tab-sizesize10pt or 12px or 1cm
tab-stopsleft size center size right sizeleft 1in center 1in right 1in;
text-alignleft | center | right | block | justify
text-indentsize10pt or 12px or 1cm  
font-stylenormal | italic | inherit 
font-weightnormal | bold | inherit  
text-decorationnormal | underline | line-through | inherit  
background-colorR,G,B | #HEX | "WEB Color Name" |
rgb(r,g,b) | hsl(h,s,l) | cmyk(c,m,y,k)
 
color R,G,B | #HEX | "WEB Color Name" |
rgb(r,g,b) | hsl(h,s,l) | cmyk(c,m,y,k)
 
line-height size | number | percent 10pt or 12px or 1cm
2.5 is coficient for paragraph font-size
250% is coficient for paragraph font-size
   
marginA
A B
A B C
A B C D
top-right-bottom-left
top-bottom, right-left
top, right-left, bottom
top, right, bottom left
margin-topsizemargin-rightsize | percentmargin-bottomsizemargin-leftsize | percent
paddingA
A B
A B C
A B C D
top-right-bottom-left
top-bottom, right-left
top, right-left, bottom
top, right, bottom left
padding-topsize 
padding-rightsize | percent 
padding-bottomsize 
padding-leftsize | percent 
   
border-widthsize  
border-stylenone | dotted | dashed | dashdot | dashdotdot | solid 
   
unitspx | pt | in | cm | mm | pc | % | rem | em | ex | vw | vh | vmin | vmax