Placing graphics using XY coordenants

J

John Wright

Is there a way I can place an image in Word using VBA or VB using an XY
coordinant system?

If not, I have a document that I automate out of a VB program that places
text and graphics on a page by bookmark. The images are inline and need to
anchor to the bookmark. If I do not show the document my graphics are put
all over the page. If I show the form during the processing the graphics
get placed but the users are confused as they see this word document
flashing and rearranging itself during this process. I am using tables for
this layout. The best way for me to do this is to place the text at the
bookmarks, then place the graphics on the page at an XY position without
showing the form at all. Any suggestions, VB6 word 9.0 object library.

John
 
J

Jezebel

Use Shapes rather than InlineShapes. Set the positioning relative to the
page and set the Top and Left properties. It's X,Y positioning, relative to
the top left corner of the page. Make sure you get all the other settings
right, like allow overlap, etc. Also makes life easier if you anchor them to
a known, fixed point: often with this sort of layout, each page begins with
a heading of some sort (if not, it might be worth contriving onje, even if
it's just a single 1pt paragraph break) -- lock the anchors to that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top