Printproblem - Size of a string in pixels

Printproblem - Size of a string in pixels

Postby Willy » Thu Aug 23, 2007 8: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
Willy
 
Posts: 117
Joined: Thu Mar 02, 2006 11:06 am
Location: Belgium

Re: Printproblem - Size of a string in pixels

Postby Richard Chidiak » Thu Aug 23, 2007 8:37 am

OPRN:GETTEXTWIDTH(ctext,cfont)

Hth

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby demont frank » Thu Aug 23, 2007 9:31 am

demont frank
 
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Postby Willy » Thu Aug 23, 2007 9:49 am

Thanks Richard,

This works fine.
Willy
 
Posts: 117
Joined: Thu Mar 02, 2006 11:06 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 71 guests