[Lazarus] fpReport - can not render pagefooter
Andreas Frieß
friess at gmx.at
Wed Sep 27 13:53:31 CEST 2017
THX Graeme
In windows this is possible and running: -> I have my sample extended
procedure TForm1.FormActivate(Sender: TObject);
begin
if not FInit then begin
gTTFontCache.ReadStandardFonts;
gTTFontCache.BuildFontCache;
if PaperManager.PaperCount=0 then
PaperManager.RegisterStandardSizes;
FInit:= true;
end;
end;
The problem with fontcache, is not (maybe direct) visible in the demo on
FPReport Usage.
BTW: point 3 -> the code is copied direct from the 'designer' :-) not
made on my own - lol.
Bugreport for the designer problem with orientation is 32470, i will
check this and close if running.
Andreas
Am 27.09.2017 um 12:50 schrieb Graeme Geldenhuys via Lazarus:
> 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.
>
>
> ps:
> Note that I compiled your project using the latest fpReport from
> FPC Trunk. I simply set the correct Unit Source Path in the project.
> You don't need to use FPC Trunk compiler - I used FPC 2.6.4.
>
>
> Regards,
> Graeme
>
More information about the Lazarus
mailing list