<WIDTH>

Navigation:  vpxPrint tags > Characters alignment >

<WIDTH>

Previous pageReturn to chapter overviewNext page

 

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 <FRAME> tag, which allows more flexibility. If you want to insert a > sign, add a \ character before the > (\>).  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 so that words can be splitted anywhere. 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().