Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add a jpg file in Excel ?
Message
 
To
15/08/2016 23:54:56
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01639497
Message ID:
01639506
Views:
72
>Hi,
>
>I want to add a jpg picture file in Excel,
>what is the VFP command or statement to do this ?
>
>Please advise.
>
>Thanks.
>Derek Yim

This is VB code, but a little translation required.
With xlApp.ActiveSheet.Pictures.Insert(PicPath)
    With .ShapeRange
        .LockAspectRatio = msoTrue
        .Width = 75
        .Height = 100
    End With
    .Left = xlApp.ActiveSheet.Cells(i, 20).Left
    .Top = xlApp.ActiveSheet.Cells(i, 20).Top
    .Placement = 1
    .PrintObject = True
End With
Previous
Reply
Map
View

Click here to load this message in the networking platform