trichview.com

trichview.support.thirdparty




Re: Wrapper to FastReport


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/11/2003 10:56:34


> Hello Sergey,

>

> > This is very-very rough code. It must be rewritten from scratch.

> > In result there must be something like RB wrapper.

> > The main idea - embedded reporthelper must be formatted to some

offscreen

> > high-resolution canvas (RB wrapper uses 1440 dpi) and drawn on screen

and

> on

> > paper as a preview.

>

> Doesn't this require a lot of memory ?


No. This canvas (named  FCanvasRef in wrapper) is not linked to bitmap or

something like this. It stores nothing.

It's used only to provide some information for helper.Init.


Some tricks are required to work in the given resolution

1) Assigning Canvas.Font.PixelsPerInch := 1440;

2) Assigning helper.RichView,RVStyle.TextStyles.PixelsPerInch := 1440;

3) Using special descendant of TRVReportHelper (see TRVReportHelperRef; it

always works in 1440 resolution and can save/load RichView document when

streamed)





Powered by ABC Amber Outlook Express Converter