MS WORD page calculation from C#
- From: "Kristijan Marin" <kristijan.marin@xxxxxxxxxx>
- Date: Fri, 16 Feb 2007 23:59:05 +0100
Hi,
I can't get to figure out the calculation that is done on pageSetup object
in Word.Document object ....
Everything is in points .... and i'm only interested in height and lines
,,,,
I found out that A4 page is 842 in Height and 594 in width ...... line
spacing is 12 ...
when setting every margin,grid,distance to 0, LinesPage parameter gets 46 i
thought this is the number of lines but guess not
Now if i go and count the lines myself i get 61 lines ......
So now why Word returns 46 and does this 12 for linespacing actually defines
height of the line or not ?
If this is not it how do i get the exact height of a line ?
I know this got something to do with Font itself cause Times 12 has
different height then Arial 12 etc .... but where to look for data to get
correct calculation ?
Thanks.
Kris
.
- Follow-Ups:
- Re: MS WORD page calculation from C#
- From: Kristijan Marin
- Re: MS WORD page calculation from C#
- Prev by Date: Re: Troubleshoot Outlook 2003 Add-in written in VSTO SE Deployment
- Next by Date: Re: MS WORD page calculation from C#
- Previous by thread: Page break in MS Word where no paragraphs
- Next by thread: Re: MS WORD page calculation from C#
- Index(es):