Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding text from a specific position
Message
De
13/06/2002 02:48:57
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Adding text from a specific position
Divers
Thread ID:
00667789
Message ID:
00667789
Vues:
49
I am trying to add some text from a specific location from my Word document. I have some code like this:
SELECT Title,FirstName FROM Employee INTO CURSOR Temp
loDocument=toWord.ActiveDocument
SCAN
loDocument.insertafter(Title)
loDocument.insertafter(CHR(13))
loDocument.font.bold=.T.
loDocument.insertafter(FirstName)
loDocument.font.bold=.F.
loDocument.insertafter(CHR(13)+CHR(13))
ENDSCAN
Basically, I am trying to print a few records in a row by showing the Title followed by the first name in bold. However, Word doesn't like it. I believe I have to define a range. How do I do that?

Also, I have defined my Word document in 3 columns. So, I would like all that text to be within those columns and start from the upper part. Is there a way to specify that?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform