Re: A Challenge


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Robert G Laurin on June 05, 2012 at 04:36:49:

In Reply to: Re: A Challenge posted by Jeff Cinelli on June 04, 2012 at 13:39:33:

Who cares about font size? What you really want is to fill your page with your report.

I use a routine that computes the font size based on the number of columns I want to print and the width of the printable area (adjusted to a user's margin - usually 0.25" or 0.6" on left margin for pre-punched paper).

Once you have the printable width, you divide the printable with by the number of columns. That gives you your character width in twips (1440/inch). For character height, I use width*2 for letter gothic. It is probably different for the fat Lucida Console. I personally found that Letter Gothic as a better aspect ratio for printing reports.

If I really want to use a CPI, I divide 1440 by my CPI that is the width and use the same width*2 for the height.

I have one subroutine that does it all. If you want the specific sequence of events to do the page setup let me know and I'll put it together for you.

Would be interesting to feed your request to my routine to see how it would behave...


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]