× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



One thing I tried, with some success, was to create a testing document of only

1___+__10____+___20____+___30 ...1
2___+__10____+___20____+___30 ...2
3___+__10____+___20____+___30 ...3
4___+__10____+___20____+___30 ...4

that filled the page's printable width and height.

Then I printed it on the form I had to fill.

With that technique a lot of problems, but not all, went away.


On 3/18/2015 5:42 PM, James H. H. Lampert wrote:
Fellow Midrange Geeks:

My first (and so far, only) project involving both an
externally-described print file and AFPDS keywords is going rather well,
but it could be a lot better if I could determine the set-width of a
character string, in the font in which it is presented.

There are numerous fields that have too little space on the page to
accommodate the full field length, in which I'm applying variable
horizontal scaling, based on the RPG %LEN(%TRIM()) of the field. They'd
work a lot better if I could calculate the horizontal scaling from the
actual set-width.

One of those fields, in addition, is one where it would be nice if, for
values that take up less than the available space even without
horizontal scaling, I could accurately center the value (which of course
can't be done without knowing the set-width.

Surely I'm not the first one in this position?

--
JHHL

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.