Reply
 
Thread Tools Display Modes
  #1   Report Post  
Tim
 
Posts: n/a
Default How does Word calculate single line spacing

I need to put numbers down the side of a page for a set of legal documents.
Built in line numbering is no good because it doesnt number blank lines
caused by space after the paragraph so I have written code to calculate the
position of each line and place a number in a text box next to the line. Even
though all font sizes are 12 (Arial and TNR), the numbers fall out of line
when line numbering is single. Why is this so?

Thanks

Tim

  #2   Report Post  
Suzanne S. Barnhill
 
Posts: n/a
Default

Every font has a certain amount of built-in leading, so Single line spacing
will vary between fonts.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Tim" wrote in message
...
I need to put numbers down the side of a page for a set of legal

documents.
Built in line numbering is no good because it doesnt number blank lines
caused by space after the paragraph so I have written code to calculate

the
position of each line and place a number in a text box next to the line.

Even
though all font sizes are 12 (Arial and TNR), the numbers fall out of line
when line numbering is single. Why is this so?

Thanks

Tim


  #3   Report Post  
Jezebel
 
Posts: n/a
Default

If you're using W2003, you can determine the vertical position of each line
through the Lines() collection --

activedocument.activewindow.Panes(1).Pages(1).Rect angles(3).Lines(1).Top

This bit of object modelling is somewhat mysterious, and the documentation
is MS at its absolute worst. From what I've been able to work out: You have
to be in Print view for it to work, and the number of Rectangles on each
page depends on your layout. If you have headers and footers, the body of
the page seems to be Rectangle(3) .... but there may be other factors.

Alternatively, you can physically select each line and use the Information()
property to get its vertical position.



"Tim" wrote in message
...
I need to put numbers down the side of a page for a set of legal documents.
Built in line numbering is no good because it doesnt number blank lines
caused by space after the paragraph so I have written code to calculate
the
position of each line and place a number in a text box next to the line.
Even
though all font sizes are 12 (Arial and TNR), the numbers fall out of line
when line numbering is single. Why is this so?

Thanks

Tim



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can you create quickwords in MS Office Word 2003 Christine S Microsoft Word Help 4 February 8th 05 03:01 PM
How do I create & merge specific data base & master documents? maggiev New Users 2 January 12th 05 11:30 PM
In typing dates in Word, i.e. "January 12" how do you keep the "1. Carol Microsoft Word Help 2 January 12th 05 08:09 PM
WordPerfect - copying formatting Morgan Page Layout 1 January 10th 05 05:00 PM
How do I convert a cd in word perfect to microsoft word greylady Microsoft Word Help 1 November 23rd 04 07:03 PM


All times are GMT +1. The time now is 05:06 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"