Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation
Message
De
18/09/2001 09:28:08
 
 
À
18/09/2001 09:09:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00557740
Message ID:
00557767
Vues:
8
>THats what i thought
>
>heres the word basic macro that i recorded but i dont see how to adapt it.!
>
>
>Sub Macro1()
>'
>' Macro1 Macro
>' Macro recorded 17/09/01 by Colin Burton
>'
> Selection.InlineShapes.AddPicture FileName:= _
> "C:\vms\001-VAN.M-15030-SMALL.GIF", LinkToFile:=False, SaveWithDocument:= _
> True
>End Sub

This is the *untested* conversion:
Selection.InlineShapes.AddPicture("C:\vms\001-VAN.M-15030-SMALL.GIF", .F., .T.)
Since VFP does not support named arguments, you have to go into the Word help file to see the position of the named parameters and add commas accordingly. If one of the named parameters skips positions from the function definition you have to add the necessary commas (empty or default values) to get to that position and pass the desired parameter. In this case the three parameters from the macro are the first three from the function definition in the same order.

Note that the example works on a selected area of the document, hence the "Selection".

HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform