Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pasting a form into Word

Status
Not open for further replies.

AlanArons

Programmer
Aug 1, 2002
91
US
I have been using the faq "
faq184-4212
by Mike Gagnon. Great Stuff. Thanks Mike.

My problem is I want to print the screen in landscape and have the image be maximized to the full width/height of the page.

The landscape issue is resolved with the line
oword.ActiveDocument.PageSetup.Orientation= 1

but, I have been unable to find the code to maximize the image.

Any help is appreciated.

Alan Arons [ponder]
 
Look at vba applications forum post:
It references in word inlineshape object
With .ActiveDocument.InlineShapes(.ActiveDocument.InlineShapes.Count)
.Height = 36
.Width = 156
End with
I think you will have to play with it to find the right size
wjwjr

This old world keeps spinning round - It's a wonder tall trees ain't layin' down
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top