Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add a jpg file in Excel ?
Message
 
À
15/08/2016 23:54:56
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01639497
Message ID:
01639506
Vues:
69
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform