lvdvelde
30th June 2005, 17:57
Hey everyone,

here's just a thought. I think it may be possible to change the font in which a text field is printed on a report triggered by - for example - the first character in the text field (similar to the "<" for suppression of textlines).

I need this because some of my users prefer texts printed in not-proportional fonts (otherwise the alignment gets messed up). To avoid creating duplicate reports, with only a different font for that specific layout line, i came up with this.

something like:

if ( lattr.prline(1;1) = "!" ) then
spool.fontnumber = 9
endif

but this is not enough; so I need some help here. Any suggestions?

Greetings,

Lex

Hitesh Shah
3rd July 2005, 10:26
Before the line is spooled to the report try this


if spool.pr.line(1;1) = "!" then
spool.pr.line = pf$(9) & spool.pr.line & pf$(spool.fontnumber)
endif


If u can use variables in texts while maintaining it , then u can do the same using lattr.textexpanddata and maintaining extern variable in the text as $variable and assigning the variable the requisite pf$ value in ur reportscript / program script.