Re: print large triangular outline using multiple sheets, possible?




"Mike Williams" <mikea@xxxxxxxxxxxxxxxxx> wrote
Well, I've got to say Larry that I very rarely find solutions that I just
know I would never have thought of myself, no matter how long I spent
looking at the problem, but this is very definitely one of them. Superb
stuff! It's almost the equivalent of a binary search in an ordered array, or
a "repeatedly cut the problem in half until it no longer exists" Quicksort
algorithm. Really, really nice code. The basic "divide and rule" idea is of
course a very old one, but it is something I just would never have thought
of applying to this specific problem. Absolutely brilliant! Do you mind if I
steal it? ;-)

You can use it if you want, but I have to warn you, it was a quick demo
and it very probably isn't pixel perfect. I purposely overscanned the source
side of the equation due to working with Long types:

wid = Page.Right \ 2 + 1
hgt = Page.Bottom \ 2 + 1

While it may be fine for an entire page, trying to fit that algorithm into
a specific rectangle would require a bit of tweaking.

LFS


.