Difference between revisions of "FPReport FAQ"

From Free Pascal wiki
Jump to navigationJump to search
m
Line 10: Line 10:
 
=== Papermanager must registered ===
 
=== Papermanager must registered ===
 
You never registered the standard page sizes with:
 
You never registered the standard page sizes with:
<nowiki>  PaperManager.RegisterStandardSizes;
+
<syntaxhighlight>
</nowiki>
+
  if PaperManager.PaperCount=0 then
 +
  PaperManager.RegisterStandardSi
 +
</syntaxhighlight>
 
=== Fontmanager ===
 
=== Fontmanager ===
 
Your report used LiberationSans font. Make sure you added the search paths to the font cache. eg:
 
Your report used LiberationSans font. Make sure you added the search paths to the font cache. eg:
<nowiki>{$IFDEF UNIX}
+
<syntaxhighlight>
  gTTFontCache.SearchPath.Add(GetUserDir + '.fonts/');
+
  {$IFDEF UNIX}
  gTTFontCache.SearchPath.Add('/data/devel/Wisa/fonts/Liberation/');
+
    gTTFontCache.SearchPath.Add(GetUserDir + '.fonts/');
{$ENDIF}
+
    gTTFontCache.SearchPath.Add('/data/devel/Wisa/fonts/Liberation/');
</nowiki>
+
   gTTFontCache.BuildFontCache;
 +
  {$ENDIF}
 +
</syntaxhighlight>
 +
In windows this useable
 +
<syntaxhighlight>
 +
  gTTFontCache.ReadStandardFonts;
 +
 gTTFontCache.BuildFontCache;
 +
</syntaxhighlight>
  
 
== FPC FPReport ==
 
== FPC FPReport ==

Revision as of 17:39, 1 October 2017

General

Read the README.txt file

Before you compile the FPReport, have a look at the README.txt

FPReport <> LazReport

FPReport is not LazReport !! This are 2 differnet reportsystems.

Papermanager must registered

You never registered the standard page sizes with:

  if PaperManager.PaperCount=0 then
    PaperManager.RegisterStandardSi

Fontmanager

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/');
    gTTFontCache.BuildFontCache;
  {$ENDIF}

In windows this useable

  gTTFontCache.ReadStandardFonts;
  gTTFontCache.BuildFontCache;

FPC FPReport

I did not find FPReport in my FPC dir

It is located in the FPC\packages\fcl-fpreport dir, but only in FPC trunk (=3.1.1) since rev. 36962 (20.Aug. 2017)

Lazarus FPReport

I did not find FPReport in my Lazarus dir

Only in Lazarus trunk since rev. 55719 (20.Aug. 2017). Look in LAZARUSDIR\components\fpreport the is a runtimepackage lclfpreport.lpk.

My Report does not run/start in Windows

Start the applikation from the console, so you can see if some dll's are missing. Normally freetype-6.dll and zlib1.dll are missing. For more information look into the README.txt.