How can I determine the page height of a Word document
In order to paste images into a Word document programmatically, I would like to know the height of the page in a template so I can scale the images to paste 2-3 per page. I've tried using the Range.PageSetup.PageHeight property and subtracting the Range.PageSetup.TopMargin, Range.PageSetup.BottomMargin, Range.PageSetup.HeaderDistance, Range.PageSetup.FooterDistance to determine the page height remaining. When I use this value to set the image height, this height seems to be close, but not correct, because setting the images height based on this will sometimes be too small or too large to fit 2 or 3 per page (depending on my template). Is there a way to access what Word is using to determine the remaining page height so I can size the image object to fit?