 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
JD Guest
|
Posted: Fri Feb 23, 2007 7:53 pm Post subject: SetMapMode and print preview |
|
|
When actually printing the single page report, the objective is
to fill the page exactly and this is accomplished by altering
the variouse font sizes and line spacing. A 'best guess' is
made based on the amount of data and a loop is entered where
TextWidth and TextHeight are used until the desired results
are reached.
In other samples for generating a preview, I've seen where the
mapping has been changed for screen *and* printer I/O so that
they match - resulting in WYSIWYG.
However, this approach won't work for me because the format
of the report is dependent on what ever printer it's being
printed on (it's DPI and paper size).
What I need is a TBitmap that exactly mimics drawing on it
as if it were the TPrinter's Canvas. This means (I think)
that it needs to sized accordingly and have the same pixel
ratio so that I can use the same methods to format the report.
I'm intentially omiting what I've done so far because I don't
want it to influence anyone who might have suggestions.
Thanks!
~ JD |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|