[Lazarus] New component - Delphi Form to HTML Converter (F2H) component

Michael Van Canneyt michael at freepascal.org
Tue Mar 1 12:11:49 CET 2011



On Tue, 1 Mar 2011, Felipe Monteiro de Carvalho wrote:

> On Mon, Feb 28, 2011 at 11:54 PM, Hans-Peter Diettrich
> <DrDiettrich1 at aol.com> wrote:
>> What's a design flaw? When an application needs a canvas?
>
> Michael means that the reporting engine could output to
> TFPCustomCanvas which is part of the FCL

That is one option, yes.

It could also output XML with the complete description of the final page layout:

<page number=1 height=29.4 width=21.1>
   <text top=2 left=2 width=10 height=0.8 text="Title of the report" font="Arial;Height=10">
   // ... etc.
</page>

The XML can then be transferred to any canvas you care to implement: 
previewer (GUI) , PDF, image, printer...

This is the heart of the reporting engine I already partially implemented.
(The XML is just a representation of the in-memory structure of the report)

Michael.




More information about the Lazarus mailing list