Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation
Message
From
18/09/2001 09:28:08
 
 
To
18/09/2001 09:09:01
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00557740
Message ID:
00557767
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform