I am developing a small RTF writer to create Project report
by refering microsofts specifications to gerenate RTF code. The method
that I am using is, first get the page height then insert text line by
line, every time any line is inserted, decrease the page height by font
height. Thus till the printable space is available insert the text in
the page. At the last line insert page number. It works fine.
But when I insert any bitmap (having height in exact multiple of font
height) along with text in the page with proper height calculations, the
location of the last line in actual printing/previewing gets shifted
either upwords or downwords.
Thus page number on two pages do not get printed at same location.
When there is no sufficient data to fill up the page, I insert blank
paragraphs to reach up to the last line and add the page number.
In both the cases the available printable area calculation gives exactly
same value,still actual print differs a bit in vertical alignment of
page number.
please guide....
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!