Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove line spacing
Message
From
13/01/2013 13:51:40
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Remove line spacing
Miscellaneous
Thread ID:
01562384
Message ID:
01562384
Views:
71
I am trying to create a .doc from plain text and format font and line spacing. the font works i can't find anything about removing line spacing in the document. the text itself does not appear to have any added lines between so it appears to word that is adding it.
i would like to add a loselection for line spacing of 0
does anyone know how to do that.

thanks
k
LOCAL loWord, loSelection, loDocument
loWord = CREATEOBJECT("Word.Application")
loWord.Visible = .T.
loDocument = loWord.Documents.Add()
loSelection = loWord.Selection

loSelection.Font.Name= "lucida console"
loSelection.Font.Size= "7"
loSelection.TypeText(filetostr(mytext.txt))
Next
Reply
Map
View

Click here to load this message in the networking platform