Re: MS WORD page calculation from C#
- From: "Kristijan Marin" <kristijan.marin@xxxxxxxxxx>
- Date: Sat, 17 Feb 2007 02:27:44 +0100
Well what i did now is I took Word.Font data and use it in
SystemDrawing.Font object to got date from it.
and it works.
Kris
"Kristijan Marin" <kristijan.marin@xxxxxxxxxx> wrote in message
news:%23EARQ4hUHHA.4744@xxxxxxxxxxxxxxxxxxxxxxx
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
.
- References:
- MS WORD page calculation from C#
- From: Kristijan Marin
- MS WORD page calculation from C#
- Prev by Date: MS WORD page calculation from C#
- Next by Date: RE: Word Bookmarks causing 'Insufficient Memory' error.
- Previous by thread: MS WORD page calculation from C#
- Next by thread: RE: Word Bookmarks causing 'Insufficient Memory' error.
- Index(es):