How are Tab characters handled in Write()?

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

How are Tab characters handled in Write()?

Postby Brent Rose » Tue Feb 05, 2013 5:03 am

If I output plain text containing tab (#9) characters such as:

'One'#9'Two'#9'Three'

using Write(), for example, I get some perfectly reasonable out like:

'One Two Three'

There is no particular problem here, but I wondered exactly how VPE is treating tabs internally to get this result? Can the amount of white space corresponding to each tab character be controlled?

Thanks.
Brent Rose
 
Posts: 50
Joined: Wed Mar 21, 2012 8:13 pm

Re: How are Tab characters handled in Write()?

Postby IDEAL Software Support » Tue Feb 05, 2013 12:33 pm

For plain text objects, tab characters are handled as a single white space. If you want to output parts of text on different positions, you can output the parts as separate objects on the desired positions.

Rich Text (RTF) does handle left aligned tabs, but no decimal, centered or right aligned tabs. The tab positions for RTF can be specified either by code using the VPE API, or they can be specified inside the RTF using RTF tokens.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 7 guests

cron