* * *

Author Topic: fpReport problems  (Read 825 times)

JD

  • Hero Member
  • *****
  • Posts: 1682
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 (10, 7) - Lazarus 1.8/FPC 3.0.4, NewPascal, Delphi
Linux Mint Cinnamon  - Lazarus 1.8/FPC 3.0.4, NewPascal

Indy 10.6 series; mORMot; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

Pascal

  • Hero Member
  • *****
  • Posts: 611
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 - fpc trunk 32bit - Windows 10 Pro x64

Pascal

  • Hero Member
  • *****
  • Posts: 611
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 - fpc trunk 32bit - Windows 10 Pro x64

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus