Try playing around with the Rectangles and Lines collections within the Page
object. This is a newish feature, not much used, and with documentation that
is lousy even by Microsoft standards, but worth a little experimentation for
your purposes. Create a test page, then look at
activedocument.ActiveWindow.ActivePane.Pages(1).Rectangles
The idea is that the page is broken up into 'rectangles' (columns, header,
footer, etc), each of which is broken up into discrete 'lines' that
completely encompass a block of content. The properties of these should
provide the information (position, width, height) needed to render the page
graphically. It might provide a quick way to determine the dimensions of
your various objects.
Good luck.
> Hi,
>
[quoted text clipped - 21 lines]
>
> Any thoughts on how to approach this? Thanks a lot!
Benjamino5 - 03 Nov 2006 05:04 GMT
Jezebel,
Thanks for the tips! Unfortunately, my office is stuck in Word 2000, which
has neither the Rectangle object nor even the Page object.
But I will be getting a new computer with Office 2003 in a couple of
weeks--I'll hold off on this project until then, and at that point, I'll
follow your suggestions.
Ben
> Try playing around with the Rectangles and Lines collections within the Page
> object. This is a newish feature, not much used, and with documentation that
[quoted text clipped - 37 lines]
> >
> > Any thoughts on how to approach this? Thanks a lot!