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

On Mon, Feb 28, 2011 at 11:54 PM, Hans-Peter Diettrich
<[email protected]> 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.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to