[Lazarus] [ISSUE] FCL-Web and LazReport

Leonardo M. Ramé l.rame at griensu.com
Thu Jan 17 12:01:19 CET 2013


On 2013-01-17 08:52:49 -0200, silvioprog wrote:
>    2013/1/17 Michael Van Canneyt <[1]michael at freepascal.org>
> 
>      On Thu, 17 Jan 2013, Sven Barth wrote:
> 
>        Am 17.01.2013 08:52, schrieb Michael Van Canneyt:
> 
>          Some time ago, I started a new reporting engine exactly for this
>          reason.
> 
>        And how far is your progress with that? Which reminds me that I should
>        finally test the new database search provided in packages... -.-
> 
>      It is currently dormant; I had finished the looping logic, if memory
>      serves well.
> 
>      Michael.
> 
>    I've been thinking of porting jsPDF for Free Pascal:
>    [2]http://jspdf.com
>    But, using inheritance, something like (a pseudo example):
>    VLabel.Text := 'Hello';
>    VLabel.Font.Style := [fsBold];
>    VMemo.Lines.Add('Line 1');
>    VMemo.Lines.Add('Line 2');
>    VMemo.Font.Align := faJustify;
>    ...
>    pdf.LoadFromJSON(<JSON>); // or pdf.LoadFromDataSet
>    pdf.AutoPaginate := True;
>    pdf.AddPage;
>    pdf.AddObject(VLabel);
>    pdf.AddObject(VMemo);
>    pdf.AddObject(VImage);
>    pdf.Print('print.pdf'); // or pdf.Print to print as DataURI
>    --
>    Silvio Clécio
>    My public projects - [3]github.com/silvioprog
> 

libHaru is exactly that, and I can confirm it works with Unicode Fonts,
and everything I need.

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com




More information about the Lazarus mailing list