Recent

Author Topic: A wishlist for fpreport  (Read 3013 times)

Pascal

  • Hero Member
  • *****
  • Posts: 862
Re: A wishlist for fpreport
« Reply #15 on: January 16, 2020, 06:48:40 am »
one more question is, is everybody using the last trunk.
I do.
laz trunk - fpc trunk 32bit - Windows 10 Pro x64 (1909)

MacWomble

  • Jr. Member
  • **
  • Posts: 71
Re: A wishlist for fpreport
« Reply #16 on: January 16, 2020, 08:49:02 am »
I use  FP 3.3.1 Rev 43891
« Last Edit: January 16, 2020, 09:18:13 am by MacWomble »
Mint 18.3 Cinnamon, Codetyphon 6.4 64Bit

Pascal

  • Hero Member
  • *****
  • Posts: 862
Re: A wishlist for fpreport
« Reply #17 on: January 16, 2020, 09:56:00 am »
Not the latest but should be okay for this issue.

Could you provide a minimal sample app that reproduces the error. I will test it on my machine.
laz trunk - fpc trunk 32bit - Windows 10 Pro x64 (1909)

MacWomble

  • Jr. Member
  • **
  • Posts: 71
Re: A wishlist for fpreport
« Reply #18 on: January 16, 2020, 11:18:14 am »
You find my report for playing around in the first post of this thread.
The format string must be inserted in DetailData - d.Preis memo:

    [formatfloat('#.##0,00 €',strtofloat(d.Preis))]

It should also work with the standalone designer from samples.
I use the designer for my tests.
« Last Edit: January 16, 2020, 11:32:20 am by MacWomble »
Mint 18.3 Cinnamon, Codetyphon 6.4 64Bit

MacWomble

  • Jr. Member
  • **
  • Posts: 71
Re: A wishlist for fpreport
« Reply #19 on: January 16, 2020, 12:48:58 pm »
Works now, maybe I did something wrong.

I now inserted

  DefaultFormatSettings.ThousandSeparator := '.';
  DefaultFormatSettings.DecimalSeparator := ',';   

in the formshow-event of reportdesign and when I use

  [formatfloat('#,##0.00 €',strtofloat(d.Preis))]

I get 10,10 € what is right!

With [formatfloat('#.##0,00 €',strtofloat(d.Preis))]

I get 10.10000 €

I think I interpreted the format string false  :(

It also works from my project.  :)
So the format issue is solved for now!
« Last Edit: January 16, 2020, 12:53:16 pm by MacWomble »
Mint 18.3 Cinnamon, Codetyphon 6.4 64Bit

Pascal

  • Hero Member
  • *****
  • Posts: 862
Re: A wishlist for fpreport
« Reply #20 on: January 16, 2020, 08:24:24 pm »
Okay, fine. :)
laz trunk - fpc trunk 32bit - Windows 10 Pro x64 (1909)

af0815

  • Sr. Member
  • ****
  • Posts: 459
Re: A wishlist for fpreport
« Reply #21 on: January 19, 2020, 04:57:22 pm »
The last fix for Bug 36581 wont work here complete. I am using fpctrunk and get the results if i run the test. One font is not found in the demos.

i am using Win10/64 with
Free Pascal Compiler version 3.3.1-r43977 [2020/01/19] for x86_64
Copyright (c) 1993-2019 by Florian Klaempfl and others

the dir \fonts with the expected fontfile calibti.ttf exist.

Quote
Time:42.267 N:270 E:4 F:0 I:0
  TTestReportComponent Time:00.000 N:3 E:0 F:0 I:0
    00.000  TestCreate
    00.000  TestLayoutState
    00.000  TestRenderState
.... snip ....
  TTestReportPageHeader Time:00.003 N:3 E:0 F:0 I:0
    00.001  TestWrite
    00.001  TestWrite2
    00.001  TestRead
  TTestHTMLParser Time:00.001 N:9 E:0 F:0 I:0
    00.001  TestOneTagPair
    00.000  TestNoTags
    00.000  TestTagAndRemainingText
    00.000  TestRegularTextAndTag
    00.000  TestTagNoText
    00.000  TestGetTagName
    00.000  TestGetNameValPair
    00.000  TestGetValFromNameVal
    00.000  TestGetVal
  TTestDemos Time:42.169 N:17 E:4 F:0 I:0
    00.176  SimpleList
    00.191  ExpressionDemo
    03.587  GroupingDemo
    01.693  Grouping2Demo
    01.336  FramesDemo
    00.040  ImagesDemo  Error: ETTF
      Exception:   The font file <fonts\calibri.ttf> can't be found.
      at   $00000001000B3820
    00.006  TTFDemo  Error: ETTF
      Exception:   The font file <fonts\calibri.ttf> can't be found.
      at   $00000001000B3820
    00.210  ShapesDemo
    00.010  DatasetDemo  Error: ETTF
      Exception:   The font file <fonts\calibri.ttf> can't be found.
      at   $00000001000B3820
    01.147  ColumnsDemo
    00.110  MasterDetailDemo
    00.012  JSONDemo  Error: ETTF
      Exception:   The font file <fonts\calibri.ttf> can't be found.
      at   $00000001000B3820
    01.185  CollectionDemo
    01.208  ObjectListDemo
    27.039  TestNestedGroupDemo
    01.529  BarcodeDemo
    01.820  QRCodeDemo

Number of run tests: 270
Number of errors:    4
Number of failures:  0

List of errors:
  Error:
    Message:           TTestDemos.ImagesDemo: The font file <fonts\calibri.ttf> can't be found.
    Exception class:   ETTF
    Exception message: The font file <fonts\calibri.ttf> can't be found.
        at   $00000001000B3820

  Error:
    Message:           TTestDemos.TTFDemo: The font file <fonts\calibri.ttf> can't be found.
    Exception class:   ETTF
    Exception message: The font file <fonts\calibri.ttf> can't be found.
        at   $00000001000B3820

  Error:
    Message:           TTestDemos.DatasetDemo: The font file <fonts\calibri.ttf> can't be found.
    Exception class:   ETTF
    Exception message: The font file <fonts\calibri.ttf> can't be found.
        at   $00000001000B3820

  Error:
    Message:           TTestDemos.JSONDemo: The font file <fonts\calibri.ttf> can't be found.
    Exception class:   ETTF
    Exception message: The font file <fonts\calibri.ttf> can't be found.
        at   $00000001000B3820




« Last Edit: January 19, 2020, 04:58:53 pm by af0815 »
regards
Andreas

Pascal

  • Hero Member
  • *****
  • Posts: 862
Re: A wishlist for fpreport
« Reply #22 on: January 20, 2020, 08:53:04 am »
Strange. The mentioned demos do not use calibri!
The gui/Lazarus version of the test works as expected.

laz trunk - fpc trunk 32bit - Windows 10 Pro x64 (1909)

af0815

  • Sr. Member
  • ****
  • Posts: 459
Re: A wishlist for fpreport
« Reply #23 on: January 20, 2020, 10:30:45 am »
the same for the GUI, but only if started without gdb.
regards
Andreas

af0815

  • Sr. Member
  • ****
  • Posts: 459
Re: A wishlist for fpreport
« Reply #24 on: January 20, 2020, 10:32:19 am »
i have seen, and it should work, because calibri is in the path of the fontcache.
regards
Andreas

Pascal

  • Hero Member
  • *****
  • Posts: 862
Re: A wishlist for fpreport
« Reply #25 on: January 20, 2020, 11:22:37 am »
Found the problem: SearchPath was not cleared!
laz trunk - fpc trunk 32bit - Windows 10 Pro x64 (1909)

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7928
Re: A wishlist for fpreport
« Reply #26 on: January 20, 2020, 11:23:13 am »
(yesterday fcl-report was synced, so now 3.2 should have all the recent fixes too)

Pascal

  • Hero Member
  • *****
  • Posts: 862
Re: A wishlist for fpreport
« Reply #27 on: January 20, 2020, 11:34:16 am »
(yesterday fcl-report was synced, so now 3.2 should have all the recent fixes too)
But you didn't commit, do you? fixes_3_2?
laz trunk - fpc trunk 32bit - Windows 10 Pro x64 (1909)

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7928
Re: A wishlist for fpreport
« Reply #28 on: January 20, 2020, 02:35:10 pm »
(yesterday fcl-report was synced, so now 3.2 should have all the recent fixes too)
But you didn't commit, do you? fixes_3_2?

Michael merged the bulk yesterday, I merged one more today (r43190, mantis  0036150). To branches/fixes_3_2 indeed.

Pascal

  • Hero Member
  • *****
  • Posts: 862
Re: A wishlist for fpreport
« Reply #29 on: January 20, 2020, 02:41:19 pm »
(yesterday fcl-report was synced, so now 3.2 should have all the recent fixes too)
But you didn't commit, do you? fixes_3_2?

Michael merged the bulk yesterday, I merged one more today (r43190, mantis  0036150). To branches/fixes_3_2 indeed.

Strange! I Couldn't see them this morning. Now they are showing up.
laz trunk - fpc trunk 32bit - Windows 10 Pro x64 (1909)