Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Nospace in setting in word up mail merge
Message
De
05/03/2012 08:40:08
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01537250
Message ID:
01537262
Vues:
58
>I am try to get vfp to print up some form letters using mail merge - i've go this far but can't seem to change the line spacing when the document opens in Word - default is 1 line - i would like it set to 'nospace' so the signature will appear uninterrupted.
>
>i took a guess at the code - checked some sources but can't seem to find any reference to this feature. any ideas??
>
>(Apologies that i cannot credit the pro who got me this far - this code has little to do with me.) many thanks k
>
>
>#DEFINE wdToggle 9999998
>LOCAL loWord, loSelection, loDocument
>loWord = CREATEOBJECT("Word.Application")
>loWord.Visible = .T.
>loDocument = loWord.Documents.Add()
>loSelection = loWord.Selection
>loSelection.Font.Name= "CALIBRI"
>loSelection.Font.Size= "10.5"
>
>loSelection.line.nospace  &&& XXX does not work
>
>_cliptext=FILETOSTR("temp.txt")
>loSelection.paste()
>
The Word Line object isn't what you think it is. The line spacing you're talking about is related to the Paragraph object. Check out Paragraph.LineSpacing.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform