Re: Autofit does not size properly for printing
From: cradovsky (cradovsky.1dpo3z_at_excelforum-nospam.com)
Date: 10/06/04
- Next message: Frank Kabel: "Re: Worksheet size"
- Previous message: Frank Kabel: "Re: customer autofilter"
- In reply to: Bob: "Autofit does not size properly for printing"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 6 Oct 2004 10:28:16 -0500
Three thoughts:
- One, you can manually push line-breaks into your cells at the wrap
points that make sense to you. Problem with this is you'd have to come
up with some arbitrary criteria for when to wrap (e.g., number of
characters, backing up to the beginning of a word, etc.). You'd likely
be conservative and break "early" on the line, therefore you'd have
extra whitespace between columns.
- Two, come up with a "fudge factor" that allows you to assess the
difference between the normal view and the print-preview view and apply
this to a row-height adjustment. Still not ideal, as things such as
font, bolding, word-length, etc. effect the wrapping in ways beyond the
straight factor adjustment.
- Three, find some VB environment object that lets you "peek" at the
print-preview version and adjust accordingly.
One and two are overly complex, and will always be an approximation
that will fail at the edge conditions. This could be minimized by
joining the two approaches, but that solution is too complex for easy
implementation/maintenance and will still fail occasionally.
I have yet to find the object in the VB environment that lets you
"decode", predict, or otherwise directly calculate the print-preview
version of a sheet. In the MS-Access environment, you can alter
appearences during run-time, but I haven't heard of that in Excel.
Without a resolution to this, Excel is a flawed tool for automated
reporting.
Regards,
Carlo
-- cradovsky ------------------------------------------------------------------------ cradovsky's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=15063 View this thread: http://www.excelforum.com/showthread.php?threadid=266626
- Next message: Frank Kabel: "Re: Worksheet size"
- Previous message: Frank Kabel: "Re: customer autofilter"
- In reply to: Bob: "Autofit does not size properly for printing"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|