FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour vertical line spacing in Word
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
vertical line spacing in Word
Posted: Wed Mar 25, 2020 08: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

Posts: 99
Joined: Thu Jul 12, 2007 02:02 PM
Re: vertical line spacing in Word
Posted: Wed Mar 25, 2020 02:48 PM
Ciao Romeo,

add this lines

Code (fw): Select all Collapse
oSel:ParagraphFormat:LineSpacingRule := 0
oSel:ParagraphFormat:SpaceAfter = 0


Buona serata
Massimo
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: vertical line spacing in Word
Posted: Wed Mar 25, 2020 04:10 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: vertical line spacing in Word
Posted: Wed Mar 25, 2020 04:26 PM

Grazie 1000

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: vertical line spacing in Word
Posted: Wed Mar 25, 2020 05: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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Continue the discussion