FastReport 4.0 SUM problem
We have a problem with SUM FastReport
We are currently developing a billing program. For the use of invoices we count on a field (BonTotaal) together with the SUM function.
But if we add everything, for example: 25 + 25 + 5. Then come down the bon 55. He, however, treated the field as a String, because the outcome is this: 25255!
The content of the field is not a String but a Double!
What do I do wrong, or what is the solution?
Hear from you ...
Antoine
We are currently developing a billing program. For the use of invoices we count on a field (BonTotaal) together with the SUM function.
But if we add everything, for example: 25 + 25 + 5. Then come down the bon 55. He, however, treated the field as a String, because the outcome is this: 25255!
The content of the field is not a String but a Double!
What do I do wrong, or what is the solution?
Hear from you ...
Antoine
Comments
Try latest 4.12.6
Sorry but we have the Basic version purchased! [img]style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> Isn't there a simple solution? Hear from you! Gr Anton[/img]
Attach your report template here
We work with FastReport version 4.12.
Is there an update available, in order to fix that bug?
Thank you in advance!
Anton
Hello, I believe that something is not right must be yet ...
Although, we work with SQLite3 in combination with ZeosLib 7.0.0 Alpha. Can that maybe a cause?
Does anyone have experience with working with ZeosLib and FastReport Server ...
Maybe even a solution for our problem with SUM?
Thank you!
Anton
I use the SUM function with a DataField. And then into a Master Detail Band. The price of the vouchers must be added together, by means of SUM. The bottom than the total amount of the invoice comes bon.
Perhaps clearer now?
Gr Anton
Greetings
everyone an ID?
It must be work this evening!
grtz
It is not yet possible to me now to make a demo, the project and the database is quite large.
It is a database with 10 tables. And 1 View. That View looks as follows:
We use the SUM function in "Bontotaal".
I look forward to hearing from you!
Anoine Gr
We looked into it a little more and it seems we have this problem:
http://www.fast-report.com/en/forum/?p=/discussion/3135
http://www.fast-report.com/en/forum/?p=/discussion/comment/22026
We tried to use the given solution, thus editing frx2xto30.pas and running the Recompile Wizard, this changes nothing.
Is there any other place where this faulty code could be used, and where we can change and successfully recompile it?
Thank you!
Gr Anton