[Lazarus] [ISSUE] FCL-Web and LazReport

Michael Van Canneyt michael at freepascal.org
Thu Jan 17 13:07:23 CET 2013



On Thu, 17 Jan 2013, Marcos Douglas wrote:

> On Thu, Jan 17, 2013 at 7:52 AM, silvioprog <silvioprog at gmail.com> wrote:
>>
>> 2013/1/17 Michael Van Canneyt <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:
>>
>> 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
>
> Why jsPDF and no FPDF (https://github.com/jepafi/Free-JPDF-Pascal)?
>
> Marcos Douglas
> PS: or my fork https://github.com/mdbs99/Free-JPDF-Pascal

Why did you fork this ?

Michael.




More information about the Lazarus mailing list