Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Restrict picture height in word
Message
De
04/11/2009 14:03:22
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01433107
Message ID:
01433180
Vues:
33
Thanks

Tamar has them describt as properties in her Henzenwerke book about office automation

Peter

>The scaleHeight and scaleWidth are methods not properties. Did you try to use Height and Width properties? Keep in mind that they are expressed in points not pixels.
>
>>I an inserting pictures int o a word doc through atomation with this code
>>
>> oPic=.SELECTION.InlineShapes.AddPicture(laPhotoName[m.I2] ,.F., .T.)
>> oPic.scaleHeight=MIN(oPic.scaleHeight,100)
>> oPic.scaleWidth=MIN(oPic.scaleWidth,100)
>>
>>
>>but unfortunately the picture don't get restricted to 100 pixels
>>
>>some of them take up a whole page instead just a small Pict at the top of the page
>>what am I doing wrong??
>>
>>Thanks
>>
>>
>>Peter
Peter Cortiel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform