Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting Word margins through OLE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00192747
Message ID:
00192996
Vues:
22
Kevin,

Use the Document.PageSetup object:
   this.moWord = createobject( "word.application" )
   this.moWorkOrder = this.moWord.Documents.Add( fullpath( "work order.dot" ) )
   with this.moWorkOrder.PageSetup
      .LeftMargin   = this.moWord.InchesToPoints( 0.5 )
      .RightMargin  = this.moWord.InchesToPoints( 0.5 )
      .TopMargin    = this.moWord.InchesToPoints( 0.3 )
      .BottomMargin = this.moWord.InchesToPoints( 0.3 )
   endwith
>Can anyone tell me how to set the margins
>in a Word 97 document using OLE automation?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform