Inserting pictures in the right place (and size)

W

Wes Grant

Hello.

I am building a wizard that gathers information from a user including a
picture and several pieces of text for multiple items. After imputting the
pictures and descriptive information for each unit, the wizard builds the
document. Each page should have 1 picture and the descriptive text under
it. The problem is this: When I loop through and place my pictures, they
all end up on the first page and the descriptive data follows the page
breaks as normal.

How can I make sure that the picture is always placed at the top center of
the CURRENT page? I am using activedocument.typetext and
activedocument.inlineshapes.insertpicture methods to build the document.

Thanks in advance for helping this lost newbie!
 
C

Cindy M -WordMVP-

Hi Wes,
I am building a wizard that gathers information from a user including a
picture and several pieces of text for multiple items. After imputting the
pictures and descriptive information for each unit, the wizard builds the
document. Each page should have 1 picture and the descriptive text under
it. The problem is this: When I loop through and place my pictures, they
all end up on the first page and the descriptive data follows the page
breaks as normal.

How can I make sure that the picture is always placed at the top center of
the CURRENT page? I am using activedocument.typetext and
activedocument.inlineshapes.insertpicture methods to build the document.
Try using the inlineshapes.ADDpicture method, and Selection.Range for the
Range argument

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
W

Wes Grant

I'm Sorry. inlineshapes.ADDpicture method is actually what I was using, but
for some reason all of the pictures end up at the end of the document
instead of staying inline with the text. I tried using selection.range as
the range argument, but no joy. I'm Stumped.
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < Wes Grant > écrivait :
In this message, < Wes Grant > wrote:

|| I'm Sorry. inlineshapes.ADDpicture method is actually what I was using,
but
|| for some reason all of the pictures end up at the end of the document
|| instead of staying inline with the text. I tried using selection.range
as
|| the range argument, but no joy. I'm Stumped.
||

If you do not post your code, it will be difficult to tell what is wrong
with it!

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
W

Wes Grant

I have discovered the folley of my ways. I was using a loop that ended up
bringing the selection back wards and inserting text before the image.
Thanks for the help.
 

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