Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting columns in Word
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Setting columns in Word
Divers
Thread ID:
00623964
Message ID:
00623964
Vues:
48
Hi All,

I'm using Crystal Reports to write a report to Word and I want to format the Word document to have two columns.

Here's the VB macro for doing this:

With ActiveDocument.PageSetup.TextColumns
.SetCount NumColumns:=2
End With

I've tried numerous variations to translate to VFP 6 with no luck and I can't seem to find the correct reference in the M.S. Automation w/VFP book.

Any help, ideas would be appreciated.

oword = createobject("word.application")
oword.visible = .t.
oword.documents.open(lc_word)
oword.activedocument.pagesetup.textcolumns.setcount = 2 && error message

TIA,

Jim Harvey



Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform