[Lazarus] fpReport - can not render pagefooter

Michael Van Canneyt michael at freepascal.org
Wed Sep 27 13:31:20 CEST 2017



On Wed, 27 Sep 2017, Graeme Geldenhuys via Lazarus wrote:

> On 2017-09-27 09:38, Andreas FrieƟ via Lazarus wrote:
>> What is my mistake of understanding ?
>
> You made a couple of mistakes and highlighted a bug in the PDF exporter.
>
> Mistakes:
>
> 1.  You never registered the standard page sizes with:
>          PaperManager.RegisterStandardSizes;
>
> 2.  Your report used LiberationSans font. Make sure you added
>     the search paths to the font cache. eg:
>
>           {$IFDEF UNIX}
>             gTTFontCache.SearchPath.Add(GetUserDir + '.fonts/');
> 
> gTTFontCache.SearchPath.Add('/data/devel/Wisa/fonts/Liberation/');
>           {$ENDIF}
>
> 3.  You positioned a lot of reporting elements overlapping each
>     other. Correct positioning will help you see things better. ;-)
>
>
> Bug:
>
>    The PDF exporter didn't handle Page.Orientation of Landscape
>    correctly, and rendered such pages from the bottom upwards.
>    I supplied a patch to FPC's Mantis so hopefully Michael or
>    somebody could commit that soon.
>
>       https://bugs.freepascal.org/view.php?id=32478
>
>
> After all that, the report renders just fine.

Patch Applied, thanks for the fix!

Michael.


More information about the Lazarus mailing list