Page 1 of 1

Printproblem - Size of a string in pixels

Posted: Thu Aug 23, 2007 8:13 am
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

Re: Printproblem - Size of a string in pixels

Posted: Thu Aug 23, 2007 8:37 am
by Richard Chidiak
OPRN:GETTEXTWIDTH(ctext,cfont)

Hth

Richard

Posted: Thu Aug 23, 2007 9:31 am
by demont frank

Posted: Thu Aug 23, 2007 9:49 am
by Willy
Thanks Richard,

This works fine.