Determining column position printer

Post Reply
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Determining column position printer

Post 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
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Post 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
Post Reply