Printproblem - Size of a string in pixels

Post Reply
Willy
Posts: 117
Joined: Thu Mar 02, 2006 11:06 am
Location: Belgium

Printproblem - Size of a string in pixels

Post by Willy »

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
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Re: Printproblem - Size of a string in pixels

Post by Richard Chidiak »

OPRN:GETTEXTWIDTH(ctext,cfont)

Hth

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
demont frank
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Post by demont frank »

Willy
Posts: 117
Joined: Thu Mar 02, 2006 11:06 am
Location: Belgium

Post by Willy »

Thanks Richard,

This works fine.
Post Reply