FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Printproblem - Size of a string in pixels
Posts: 117
Joined: Thu Mar 02, 2006 11:06 AM
Printproblem - Size of a string in pixels
Posted: Thu Aug 23, 2007 08:13 AM

Hello,

I want to print some labels from a database.

De font has to be automatically resized when the printed line is to long.

Any idea how I can measure a line before it is defined in the oPrt object.

Thanks

Willy

Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Printproblem - Size of a string in pixels
Posted: Thu Aug 23, 2007 08:37 AM

OPRN:GETTEXTWIDTH(ctext,cfont)

Hth

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 167
Joined: Thu Mar 22, 2007 11:24 AM
Printproblem - Size of a string in pixels
Posted: Thu Aug 23, 2007 09:31 AM
Posts: 117
Joined: Thu Mar 02, 2006 11:06 AM
Printproblem - Size of a string in pixels
Posted: Thu Aug 23, 2007 09:49 AM

Thanks Richard,

This works fine.

Continue the discussion