<WIDTH>

<< Click to Display Table of Contents >>

Navigation:  Common vpxPrint tags > Justification and characters alignment >

<WIDTH>

The WIDTH tag truncates a text within a given width.

It's useful when printing to pre-formatted papers with proportional fonts.  

 

Syntax :               <WIDTHlength=text to clip>  The length is in units values (UNITS tag).  

 

Example :          <UNITS=MM>            <WIDTH50=My text is truncated after 50mm>

 

Note: The text is smoothly truncated so that words aren't splitted in the middle except if the resulting string does not fit in the area.

This tag can be replaced by a tag, which allows more flexibility.

 

If you want to insert a > sign, prefix it with a \ character.  An alternative to <WIDTH> tag is the <TRUNCATE> tag. No word wrap occurs with <TRUNCATE> (see below).

 

 

<TRUNCATE>

 

The TRUNCATE tag truncates a text within a given width.

 

Syntax :              

         <TRUNCATElength=text to truncate>  

                 The length is in units values (UNITS tag).  

 

Example :

<UNITS=MM>            

<TRUNCATE50=My text is truncated after 50mm>  

 

 

Note: The text is truncated, no word wrap occurs.

 

If you want to insert a > sign, prefix it with a \ character. An alternative to the <WIDTH> tag, if you are a PROGRESS user, is the use of the reduce() function in xPrint.i. No word wrap occurs with reduce().