Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word OLE automation
Message
 
À
30/11/2000 15:10:29
Arturo Valdez
SAYD - Software, Asesoria Y Desarrollo
Culiacán, Mexique
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00447626
Message ID:
00447640
Vues:
7
>How could i know all the valid commands for word ole automation ?

The fastest way to find a complete list is in the Help file. Go into Word, and look for the "Programming Information" topic near the bottom of the list. If it's not there, you need to install it (use the Custom installation, and select Visual Basic Help from the Office Tools). If you have Office 97, the topic is "Microsoft Word Visual Basic Reference."

A better way to find out what commands you need is to record a macro while you interactively perform what you want to automate. Then go into the VBA editor, and see what properties and methods were set. This gives you a good starting point.

>I asking this cause i want to insert a image file on a word document from vfp, but my problem is that i couldn't minize the size of the image...so the image instert with a huge size...and on the wrong position...

There are at least 2 ways to insert a graphic into Word. Adding an inline shape means that it is embedded within the text, and the syntax looks like this:
oDocument.InlineShapes.AddPicture( cPictureFile, lLinkToFile, ;
    lSaveWithDocument, oRange )
You can then set the .Height and .Width properties of the Shape object.

Another way is to add a "floating" shape, that is in a separate layer, like you would add any other shape or callout. It has syntax that looks like:
oDocument.Shapes.AddPicture( cPictureFile, lLink, lSaveWithDocument, ;
  nLeft, nTop, nWidth, nHeight, oAnchor )
Hope this helps.

- della
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform