Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting picture to specific place in Word
Message
 
To
07/01/2009 09:39:09
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01371692
Message ID:
01371754
Views:
13
>Hi
>I have to fill word document with two pictures.
>The original and target pictures size is constant (the orinal little bigger).
>Also the content of the word document is 99% constant.
>How can I put the pictures on specific place, lternately, can I create word document with pictures and to say vfp to change that two pictures with other?

There are many options depending on what kind of picture, how do you want it to be stored in the document, what picture format you want it to be in the document, etc.
As usual, the best way to get the suitable option is to record a Macro in Word, and translate VB code to VFP.

Other than that, one of the solutions may be like:
with oWord.Selection.InlineShapes.AddPicture("C:\untitled1.jpg")
....  && set properties as needed
endwith
or (to see all available properties and methods)
lo=oWord.Selection.InlineShapes.AddPicture("C:\untitled1.jpg")
with lo
....  && set properties as needed
endwith

lo=null
Good Luck
Previous
Reply
Map
View

Click here to load this message in the networking platform