trichview.com

trichview.support




Re:  TRVReportHelper


Return to index


Author

Message

Sergey Tkachenko

Posted: 10/10/2002 16:49:51


Briefly:


This component is similar to TRVPrint, but allows to draw pages of any size

to any canvas. And it contains document (in TRVReportHelper.RichView -

invisible RichView) instead of linking (as TRVPrint does).


Instructions


load document to helper.RichView; then


helper.Init(Canvas1, PageWidth);

while helper.FormatNextPage(PageHeight) do;


Page heights may be different for different pages.


After that you can draw pages.

helper.DrawPage(PageNo, Canvas2, OnScreen{?}, PageHeight);


Canvas1 and Canvas2 may be the same or different (but must have the same

value of Font.PixelsPerInch)


Example of application

http://www.trichview.com/support/files/toimage.zip

- drawing RichView onto image (simple case - one page, the same resolution

of Canvas1 and Canvas2)


In order to scale image, you need to use winapi functions like

SetWindowExtEx







Powered by ABC Amber Outlook Express Converter