G'day eselick@gmail.com,
<shudders>
Inline pictures are SOOOOO much safer.
1) If you need pagination info, force it! Document.Repaginate after
the insert and before the set. You may even need to use an OnTime
command to completely delay
2) Addpicture takes top, left, width & height as well, use it there.
3) Have you considered using autotext instead?
4) Be careful of your sequence.
Steve Hudson - Word Heretic
steve from wordheretic.com (Email replies require payment)
Without prejudice
eselick@gmail.com reckoned:
>Hi
>Here's my second problem.
[quoted text clipped - 43 lines]
>
>Elliot
Elliot - 27 Dec 2005 02:29 GMT
Thanks for the tips.
Why are you talking about forcing a delay with the OnTime command. Why
is this necessary or rather what does it achieve?
Anyway getting gif files to insert consistently in Word is going to
drive me to drink. It should be simple, define a vertical and
horizontal position and put it there. Does this sound complicated? It's
turning into an exercise in Voodoo instead of programming. I could go
on and on about the different kinds of inconsistent results I'm
getting, but I'm sure it would be a waste of everybody's time. I can't
stop myself from describing one other one. I insert a floating picture
with use wdShapeCenter for both left and top. After adding a few more
pages I go back on click on page 1 of my folded book docuement and it
still shows alignment as centered. However on page 2 it displays my
notoriouos negative numbers again. Duh !! Maybe it's the folded book
page layout that triggers this "feature".
I had thought that positioning my grahpics independently of text would
the most rational approach and I've invested a lot of time. However,
you suggest using inline instead of floating shapes and perhaps I'll
go back to that.
Thanks for the help.
Elliot
Word Heretic - 17 Jan 2006 08:54 GMT
G'day "Elliot" <eselick@gmail.com>,
When word starts, it has to process all the document events before it
is finished processing the document and thus the document can be
considered properly loaded.
So, if we are processing inside a document start event, and we need to
do stuff with the document, such as obtain a handle to its window so
we can display a form on it (done for you by VBA when you Show a
form), we have to actually 'exit' our event and 'run something else in
a short period of time into the future'.
Steve Hudson - Word Heretic
steve from wordheretic.com (Email replies require payment)
Without prejudice
Elliot reckoned:
>Thanks for the tips.
>
[quoted text clipped - 22 lines]
>
>Elliot