Issues with the fcl-report demos

Summary

The demos for FPReport have a variety of issues.

  • webdemo in packages/fcl-report/demos does not compile: wmreports.pp(480,35) Error: Incompatible types: got "TFPReport" expected "TFPJSONReport"
  • fcldemo in packages/fcl-report/demos does compile but the text in the pdf generated seems to be offset vertically by a character height. Is text origin handled correctly in fpreport?
  • lcldemo in components/fpreport/demo (Lazarus project) does not compile: lcldemo.lpr(4,3) Fatal: Cannot find udapp used by lcldemo of the Project Inspector. All units listed in the project inspector are striked-out, i.e. cannot be found.
  • simplereportlcl in _(lazarus)\examples\fpreport\simple_ looks misplaced, too: In the LCL and preview output the title "Demo TitleBand Memo1" reaches out of the gray background area while it is correct in the pdf output.

System Information

  • Operating system: Window-11
  • Processor architecture: x86-64
  • Compiler version: fpc/main (adf84319), Lazarus/main (fda512c7197565bd375df8e1ceeef75208d43881), but fpc-3.2.2/Lazarus 2.2.6 show the same issues.
  • Device: Computer>

Steps to reproduce

Compile the demo projects listed under Summary.

Example Project

See Summary

What is the current bug behavior?

See Summary.

What is the expected (correct) behavior?

Demo projects are the "business card" of a package and must work.

Edited by Werner Pamler
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information