Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting picture to specific place in Word
Message
 
À
07/01/2009 09:39:09
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01371692
Message ID:
01371754
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform