trichview.support
Re: Difference between print and manual layout |
Author |
Message |
Martin Golm |
Posted: 04/06/2004 19:45:15 Sergey Tkachenko wrote: > > Try to calculate font height on screen and printer (GetTextExtentPoint32), > and divide page height by font height. But that's what I - implicitly - already do: int page_height = MulDiv( Printer()->PageHeight, Screen->PixelsPerInch, GetDeviceCaps(Printer()->Handle, LOGPIXELSY) ); Here, I translate the page height from printer to screen. If I use GetTextExtentPoint32() I get a font height of 16 pixels. But on printing the font height seems to lower to around 14.5 pixels. The problem is, that I need to include some images with a description below it. If both picture and description don't fit on the page, I need to do a page break before. I hoped to achieve this with a method like the one I showed in my original post. How do you calculate page breaks in TRVPrint.FormatPages(), if not by using TRichView.GetItemCoords()? Martin |
Powered by ABC Amber Outlook Express Converter