trichview.com

trichview.support




Re: print size of compontent


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/12/2002 19:34:26


TRichView assumes that bitmap in OnPrintComponent has the size of the

control, and scales this bitmap according to the printer resolution.


You can create a special RichView item type which will draw itself directly

on printer's canvas, without using temporal bitmaps and without scaling.

Look in the RichView installation, subdirectory

Demos\Addins\ChartItem\

- how to make high-quality printing of TChart, without using temporal

bitmaps and without scaling.



> >I have a component in a RV and i have to scale the content (memo with

font

> >and paragraph properties) if i want to get a correct print result.

> >So i need the size of the component on the printer in pixels (or the zoom

> >ratio).

> >How can i calculate this value?

>

> Ok, i get the value via GetDeviceCaps, but the bitmap didn't appear on

print

> preview if bitmap size is greater than original component size.

> Original Size: 21 x 100 (Screen-)Pixel

> Bitmap Size:   65 x 312 (Printer-)Pixel

>

> What can i do?

>

> regards,

> Jan





Powered by ABC Amber Outlook Express Converter