Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove line spacing
Message
 
À
13/01/2013 13:57:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01562384
Message ID:
01562386
Vues:
38
mmm. if i remove cr from the text i am going to end up with one long string. so clearly that's not the way to go.

>Word may be adding spacing between paragraphs. If each line ends with a CR/LF, Word will see it as a new paragraph. You'll have to change it in paragraph settings. Or, remove the CR/LF from the text file.
>
>>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))
>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform