Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding text from a specific position
Message
From
13/06/2002 02:48:57
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Adding text from a specific position
Miscellaneous
Thread ID:
00667789
Message ID:
00667789
Views:
50
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
Next
Reply
Map
View

Click here to load this message in the networking platform