FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Determining column position printer
Posts: 142
Joined: Sun Oct 09, 2005 10:59 AM
Determining column position printer
Posted: Wed Jul 05, 2006 07:39 AM

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

Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Determining column position printer
Posted: Wed Jul 05, 2006 08:24 AM

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

kind regards

Stefan

Continue the discussion