Lazarus

Programming => General => Topic started by: md9projeto on May 17, 2018, 02:43:47 am

Title: Reports(nnot bands only code),aby options?
Post by: md9projeto on May 17, 2018, 02:43:47 am
Hi,

Iḿ trying to move from DElphi to Lazarus,I Allways prefer to create reports using only code(Rave Reports,GmPrintSUite,VPE) ,could not find anything for Lazarus.

Thanks,
Marcello
Title: Re: Reports(nnot bands only code),aby options?
Post by: jamie on May 17, 2018, 04:07:13 am
Did you look at "LazReport" ?

 Not sure if that is what you want but....
Title: Re: Reports(nnot bands only code),aby options?
Post by: md9projeto on May 17, 2018, 04:58:36 am
Unless I got LazREport wrong,it is a band oriented report engine.
I want a canvas where I can draw freely.

Marcello
Title: Re: Reports(nnot bands only code),aby options?
Post by: GAN on May 17, 2018, 06:21:21 am
LazPrint? https://www.freepascal.org/~michael/articles/lazprint/lazprint.pdf (ftp://www.freepascal.org/~michael/articles/lazprint/lazprint.pdf)
Title: Re: Reports(nnot bands only code),aby options?
Post by: jujibo on May 17, 2018, 09:36:35 am
Unless I got LazREport wrong,it is a band oriented report engine.
I want a canvas where I can draw freely.

Lazreport has the addon lr_codereport where you can draw freely
Title: Re: Reports(nnot bands only code),aby options?
Post by: Zoran on May 17, 2018, 10:13:01 am
LazPrint? https://www.freepascal.org/~michael/articles/lazprint/lazprint.pdf (ftp://www.freepascal.org/~michael/articles/lazprint/lazprint.pdf)

Yes, I think that the topic creator should start with this article.
However, the link doesn't work for me, but opening Michael's articles' page works: https://www.freepascal.org/~michael/articles/ (https://www.freepascal.org/~michael/articles/). Then, find lazprint article there.
Title: Re: Reports(nnot bands only code),aby options?
Post by: HeavyUser on May 17, 2018, 11:40:45 am
wasn't there an fpreport that was code only just added to the RTL?
Title: Re: Reports(nnot bands only code),aby options?
Post by: md9projeto on May 17, 2018, 12:44:09 pm
Thanks for all the answers,Iĺl investigate them.

Marcello
Title: Re: Reports(nnot bands only code),aby options?
Post by: Zoran on May 17, 2018, 06:10:49 pm
wasn't there an fpreport that was code only just added to the RTL?

Yes, but it is band-oriented, see the first sentence in the wiki (http://wiki.freepascal.org/FPReport#Architecture):
Quote
FPReport is a banded reporting tool.

which the topic starter specifically asked not to be.
Title: Re: Reports(nnot bands only code),aby options?
Post by: Soner on May 17, 2018, 06:29:17 pm
You can use lazreport without bands. You can put Memo, Line and other objects direct on report.
I am using it for my custom report.

Some of usefull functions:
frReport1.Pages.Add;
frReport1.Pages.Clear;
if y>frReport1.Pages[CurrentPage].BottomMargin then  frReport1.Pages.Add;
frReport1.Pages[CurrentPage].LeftMargin;
frReport1.Pages[CurrentPage].RightMargin;

Edit:
Do not any bands. Use it bandless.
TinyPortal © 2005-2018