Kevin,
Good idea... but the problem would probably be the rendering of smallish fonts 
graphically which would not be good. I had thought about using the M$ rich text 
control which works on screen, but that just seems to add in more problems when 
printing.

Dave

-----Original Message-----
From: ProFox [mailto:[email protected]] On Behalf Of Kevin Cully
Sent: 26 February 2014 16:14
To: [email protected]
Subject: Re: Fitting text into a fixed space

I'm not sure how this (potential) solution would work in VFP, but in another 
language I've created an in-memory graphic object and then use that as a 
container to print text.  It will then tell me how wide (and
high) that text actually was.  I'll then dispose of that object but use that 
information to put the graphic onto another 'thing' such as a report.  Sounds 
clunky but it runs very well. HTH.

On 02/26/2014 11:01 AM, Dave Crozier wrote:
> We have a works "spec sheet" that defines each parameter of a customer job 
> and prints out on a SINGLE sheet of A4 all the parameters that a machine 
> operator requires. Some of this data is not fixed length i.e 2 fields that 
> are purely descriptive so in the space we have available for each field we 
> need to display the data in the largest font available for the space 
> available. Note that this is in a report and I can use a udf to change the 
> font of a field before it is printed using the Report Listener.
>


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to