vertical line spacing in Word

Post Reply
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

vertical line spacing in Word

Post 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
User avatar
MaxP
Posts: 85
Joined: Thu Jul 12, 2007 2:02 pm
Contact:

Re: vertical line spacing in Word

Post by MaxP »

Ciao Romeo,

add this lines

Code: Select all

oSel:ParagraphFormat:LineSpacingRule := 0
oSel:ParagraphFormat:SpaceAfter = 0
Buona serata
Massimo
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: vertical line spacing in Word

Post by karinha »

João Santos - São Paulo - Brasil
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: vertical line spacing in Word

Post by Romeo »

Grazie 1000
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: vertical line spacing in Word

Post 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.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Post Reply