Recent

Author Topic: fpReport problems  (Read 2643 times)

JD

  • Hero Member
  • *****
  • Posts: 1848
fpReport problems
« on: November 20, 2017, 12:37:11 am »
Hi there,

I'm having some problems with fpReport. I cannot compile 2 of the 3 fcl-report demos and the lcldemo because of some lines of code in rtgrouping.pas

Code: Pascal  [Select][+][-]
  1.   {*** variables ***}
  2.   rpt.Variables.AddExprVariable('population_in_M', 'sum(StrToFloat(population) / 1000000)', rtFloat);
  3.   rpt.Variables.AddExprVariable('grp_sum_population', 'sum(StrToFloat(population))', rtFloat, rtGroup, GroupHeader);
  4.   rpt.Variables.AddExprVariable('grp_sum_population_in_M', 'sum(StrToFloat(population) / 1000000)', rtFloat, rtGroup, GroupHeader);
  5.   rpt.Variables.AddExprVariable('sum_population', 'sum(StrToFloat(population))', rtFloat);
  6.   rpt.Variables.AddExprVariable('sum_population_in_M', 'sum(StrToFloat(population) / 1000000)', rtFloat);
  7.  


The errors are shown in the screenshot below.

Thanks for your assistance.

JD
« Last Edit: November 20, 2017, 12:39:36 am by JD »
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: fpReport problems
« Reply #1 on: November 20, 2017, 05:45:40 am »
So you are using  1.8RC5, right? I'll check it later. You can use trunk of FPC and Lazarus instead.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: fpReport problems
« Reply #2 on: November 20, 2017, 06:19:11 am »
FFC 3.0.4 does not include fpReport (fcl-report)!
Did you put it in manually? Then please update to current trunk. Also update fcl-base/src/fpexprpars.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

 

TinyPortal © 2005-2018