M
Michael Conroy
Hi all -
I've been developing in Word 2003 and have a VB.NET automation routine that
plops an image into a Word doc both locating and sizing the newly inserted
image based on a blank picture. The whole point is to allow the doc creator
to locate and size the image exactly how he wants it. (He has a utility that
allows him to name the shape so I can find it later).
In Word 2K, this whole method breaks down. It seems as though Shape.Left
and Shape.Top don't really work the same way. When I insert the picture in
Word 2K, it simply puts it wherever and ignores the location information. It
looks like it's sizing the image right, but if I can't control where it
lands, the whole algorithm goes out the window and I have to start again.
So again - design goals:
1. Word user should be able to create the landing zone for the picture by
inserting the new picture object, sizing it and locating it as appropriate.
2. Word user names the shape using a utility.
3. VB.NET automation app grabs the document and shape, inserts the new
picture into the document using the original picture object as a template for
both size and location.
Works great in 2003. Bombs in 2000.
HELP!!!!!
Thanks,
Mike
I've been developing in Word 2003 and have a VB.NET automation routine that
plops an image into a Word doc both locating and sizing the newly inserted
image based on a blank picture. The whole point is to allow the doc creator
to locate and size the image exactly how he wants it. (He has a utility that
allows him to name the shape so I can find it later).
In Word 2K, this whole method breaks down. It seems as though Shape.Left
and Shape.Top don't really work the same way. When I insert the picture in
Word 2K, it simply puts it wherever and ignores the location information. It
looks like it's sizing the image right, but if I can't control where it
lands, the whole algorithm goes out the window and I have to start again.
So again - design goals:
1. Word user should be able to create the landing zone for the picture by
inserting the new picture object, sizing it and locating it as appropriate.
2. Word user names the shape using a utility.
3. VB.NET automation app grabs the document and shape, inserts the new
picture into the document using the original picture object as a template for
both size and location.
Works great in 2003. Bombs in 2000.
HELP!!!!!
Thanks,
Mike