Big number

FastReport for Xailer & [x]Harbour (English/Spanish)
Responder
nbatocanin
Mensajes: 42
Registrado: Sab Ago 10, 2013 2:39 am

Big number

Mensaje por nbatocanin »

Hi to all :)

I have a very strange problem with displaying large numbers. For example, I have numeric fields which contains number 2201000253. FR displays this number as -2093967043. Actualy: 2201000253 - 2^32 = -2093967043 so obviously there is some limitation.

Is there a way to display this number normally?

Regards, Nenad
hgarciaj
Mensajes: 107
Registrado: Jue Sep 23, 2010 12:44 am

Re: Big number

Mensaje por hgarciaj »

try one of those:
one use a format mask like "9999999999999"
two convert the number to string before showing report
Saludos
Héctor García
nbatocanin
Mensajes: 42
Registrado: Sab Ago 10, 2013 2:39 am

Re: Big number

Mensaje por nbatocanin »

Thanks for the reply, but unfortunately none of that works. The problem is obviously at a lower level, in the core of FastReport ...

Is there a possibility to buy an FR update? I don't need anything special, but I would be glad to support further development.

Regards,

Nenad Batocanin
Wings
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9255
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Re: Big number

Mensaje por ignacio »

I'm afraid to can not. I'm almost sure you can use a template (picture).

Regards
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
nbatocanin
Mensajes: 42
Registrado: Sab Ago 10, 2013 2:39 am

Re: Big number

Mensaje por nbatocanin »

Problem solved!

I use old version of frx.dll (1.5.1411.27). When i replace DLL with version 1.5.1609.7, everything work properly.

Which version is the latest and where can I get it?

Regards, NB
nbatocanin
Mensajes: 42
Registrado: Sab Ago 10, 2013 2:39 am

Re: Big number

Mensaje por nbatocanin »

Unfortunately, the problem has not been solved :(

Please see this examples - first one is with FR version 1.5.1411.27:

https://drive.google.com/file/d/1f11p9y ... sp=sharing

this is the same example, FR version 1.5.1609.7:

https://drive.google.com/file/d/1vJbxw7 ... sp=sharing

Older version show wrong "big" numbers like 2201000253 (first report P.FR3). Also, the old version correctly displays a manually created variable (P2.FR3).

Second version fix bug with number and displays right value. BUT - this version does not recognize manualy created variable and reports error! This version does not even allow such a report to be saved (see picture)!

frbug2-2.PNG
frbug2-2.PNG (237.58 KiB) Visto 4998 veces
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9255
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Re: Big number

Mensaje por ignacio »

Imagen 399.png
Imagen 399.png (36.76 KiB) Visto 4991 veces
See the CM length
DLL version: 1.5.1705.9

Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
nbatocanin
Mensajes: 42
Registrado: Sab Ago 10, 2013 2:39 am

Re: Big number

Mensaje por nbatocanin »

See the CM length
DLL version: 1.5.1705.9
Sorry I did not understand?

Ok, newer versions solve the problem with a large number (the problem is also solved in the my 1.5.1609.7 version), but the problem with manually created variables remains! Is this fixed in your version?

I ask again: where can I buy / get a new version?
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9255
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Re: Big number

Mensaje por ignacio »

You can download latest version from:

https://download.xailer.com/?en&file=103

This code also works correctly:

::oFastReport1:AddVariable( "test", 2201000253 )
Imagen 402.png
Imagen 402.png (1.3 KiB) Visto 4977 veces
Imagen 401.png
Imagen 401.png (681 Bytes) Visto 4977 veces
Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
nbatocanin
Mensajes: 42
Registrado: Sab Ago 10, 2013 2:39 am

Re: Big number

Mensaje por nbatocanin »

On this link is version 1.5.1609.7, which has bug. Can you upload your version please?

Thanks for the recommendation, but the problem is that we have a huge number of users who have custom made fr3 scripts with manually created variables. If I put a FR version that can't accept that, I have to change 1000+ scripts...
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9255
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Re: Big number

Mensaje por ignacio »

You can download latest version from:

https://download.xailer.com/?en&file=103
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
nbatocanin
Mensajes: 42
Registrado: Sab Ago 10, 2013 2:39 am

Re: Big number

Mensaje por nbatocanin »

Like I said, the link doesn't contain the latest version:
x.PNG
x.PNG (7.48 KiB) Visto 4948 veces
Anyway, I tried that version and it still has a bug.
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9255
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Re: Big number

Mensaje por ignacio »

https://www.xailer.com/files/frx/frx.zip

You must have latest Xailer version in order to use that DLL.

Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
nbatocanin
Mensajes: 42
Registrado: Sab Ago 10, 2013 2:39 am

Re: Big number

Mensaje por nbatocanin »

I never used Xailer, only FastReport, but if it is a necessary to get the correct update, I will buy it.

Can you please confirm that this example works with the latest DLL:

https://drive.google.com/file/d/18OmZAr ... sp=sharing
Responder