Page 1 of 1

Determining column position printer

Posted: Wed Jul 05, 2006 7:39 am
by Frank Demont
Hello

In Clipper we can :

? "Test"
?? "Continue after test"

Now we have
oPrn:say(nrow,ncol,"test")
oPrn:say(nrow, ???? , "Continue after test")
How we know the column position ?

With courier new i have no problems , but with other fonts it seems that we have to know the width from each character.

Is it possible ?

Frank

Posted: Wed Jul 05, 2006 8:24 am
by StefanHaupt
Frank,

you can use GetTextWidth() to get the length of a string.

Maybe it´s better to use oPrn:cmSay() instead of oPrn:Say(). So you can easier control the printposition

Stefan