Page 1 of 1

vertical line spacing in Word

Posted: Wed Mar 25, 2020 8:20 am
by Romeo
Ciao all

i wish to know if is possible to set a vertical line spacing between 2 lines in a Word file

Example, to write in a Word file i do:

oWord := CREATEOBJECT( "Word.Application" )
...
...
oSel = oWord:Selection
...
...
oSel:Font:Size:=14
oSel:Font:Bold:=.t.
oSel:Font:Color:=CLR_RED
oSel:Font:name:="Nome Font"
oSel:TypeText("Descrizione Riga 1"+CRLF)
oSel:TypeText("Descrizione Riga 2"+CRLF)

It words well, but the second line has too space from first line !!

Is is possible to set it ? How ?

Many thanks
Romeo

Re: vertical line spacing in Word

Posted: Wed Mar 25, 2020 2:48 pm
by MaxP
Ciao Romeo,

add this lines

Code: Select all

oSel:ParagraphFormat:LineSpacingRule := 0
oSel:ParagraphFormat:SpaceAfter = 0
Buona serata
Massimo

Re: vertical line spacing in Word

Posted: Wed Mar 25, 2020 4:10 pm
by karinha

Re: vertical line spacing in Word

Posted: Wed Mar 25, 2020 4:26 pm
by Romeo
Grazie 1000

Re: vertical line spacing in Word

Posted: Wed Mar 25, 2020 5:02 pm
by driessen
Hello guys,

Where can we find a list of all the possibilities that we can use to handle a document in Word?

How can we define tab settings (left, center and right) in Word?

Thanks a lot in advance.