vertical line spacing in Word

vertical line spacing in Word

Postby Romeo » Wed Mar 25, 2020 8:20 am

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
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: vertical line spacing in Word

Postby MaxP » Wed Mar 25, 2020 2:48 pm

Ciao Romeo,

add this lines

Code: Select all  Expand view
oSel:ParagraphFormat:LineSpacingRule := 0
oSel:ParagraphFormat:SpaceAfter = 0


Buona serata
Massimo
User avatar
MaxP
 
Posts: 84
Joined: Thu Jul 12, 2007 2:02 pm

Re: vertical line spacing in Word

Postby karinha » Wed Mar 25, 2020 4:10 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7343
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: vertical line spacing in Word

Postby Romeo » Wed Mar 25, 2020 4:26 pm

Grazie 1000
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: vertical line spacing in Word

Postby driessen » Wed Mar 25, 2020 5:02 pm

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. 24.02 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc77
User avatar
driessen
 
Posts: 1399
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 47 guests