BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SetMapMode and print preview

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
JD
Guest





PostPosted: Fri Feb 23, 2007 7:53 pm    Post subject: SetMapMode and print preview Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.