Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pasting Bitmap into Word - Picture #?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Pasting Bitmap into Word - Picture #?
Miscellaneous
Thread ID:
00250021
Message ID:
00250021
Views:
84
I'm trying to use an OLE link to Word to paste 3 bitmaps and print them on a single page. Code:

oleApp = createobject("word.application")
with oleApp
.visible = .T.
.Documents.Add

* paste, and position first bitmap
.Selection.Paste
.ActiveDocument.Shapes("Picture 2").Select
.Selection.ShapeRange.RelativeHorizontalPosition = 1
.Selection.ShapeRange.RelativeVerticalPosition = 1
.Selection.ShapeRange.Left = 100
.Selection.ShapeRange.Top = 115
...

Problem:
Word assignes this pasted image a tag like "Picture 2". I need to reference this newly pasted image to position it properly. The tag is incremented with each picture, but doesn't start at 1.

Is there a way to set this tag or at least find out what the tag is so I can reference the picture?

Thanks.
Regards,

Bill Dimes

"There's never enough time to do it right the first time, but there's always time to do it over"
Next
Reply
Map
View

Click here to load this message in the networking platform