Adding huge numbers as general text shows as numbers

Stimulsoft Reports.WEB discussion
angelcalvasp
Posts: 25
Joined: Fri Nov 10, 2017 9:48 pm

Adding huge numbers as general text shows as numbers

Post by angelcalvasp »

I have a larger number

0112201701179128754100120010110051994582523037018

which shouldn't be treated as a number notice the 0 at the beginning, I am presenting it in a text with text format as general and it is being show as follows
1.12201701200101E+35

Now I should mention if I put 0112201701179128754100120010110051994582523037018 directly as the expression it shows up as a text, but when It is coming from a json object data source it comes as 1.12201701200101E+35, the datasource has the column as string and even if I concat a string or even use to Upper to try to make the report understand that its a string (PANIC BUTTON ({Trim(ToUpperCase(root.documento_numero_autorizacion))+""})), it doesn't work

any help with this issue would be greatly appreciated
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: Adding huge numbers as general text shows as numbers

Post by Edward »

Hi Angelcalvasp,

Please try to add that big number using quotes "0112201701179128754100120010110051994582523037018"

Please check the attached report.
NumberInStringColumnProblem.mrt
(7.08 KiB) Downloaded 343 times
What is the version of Stimulsoft Reports.Web you are using?

Merry Christmas & Happy New Year!

Thank you,
Edward
angelcalvasp
Posts: 25
Joined: Fri Nov 10, 2017 9:48 pm

Re: Adding huge numbers as general text shows as numbers

Post by angelcalvasp »

I am using the latest version 2018.1.4, I'm guessing I wasnt clear about the problem I have no problem if I put the string 0112201701179128754100120010110051994582523037018 it is shown correctly the problem happens when the value isnt directly set but comes from a datasource in this instance a json datasource which is bringing the same value 0112201701179128754100120010110051994582523037018
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Adding huge numbers as general text shows as numbers

Post by HighAley »

Hello.

Please, check the type of this column.
If you want to see it as a string then the column should be a string type.

If you still need our help, please, send us your report template with sample data.

Thank you.
alireza_s_84
Posts: 18
Joined: Fri Jan 27, 2017 4:43 am

Re: Adding huge numbers as general text shows as numbers

Post by alireza_s_84 »

i wrap big number by quotes in json but report show as Exponential format in version 2018.1.8.
Attachments
InputLatter.json
(230 Bytes) Downloaded 160 times
InputLatter.mrt
(22.68 KiB) Downloaded 168 times
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Adding huge numbers as general text shows as numbers

Post by Lech Kulikowski »

Hello,

We couldn't reproduce the issue. Please try to check the last release build.

Thank you.
Attachments
Capture.PNG
Capture.PNG (41.51 KiB) Viewed 3608 times
angelcalvasp
Posts: 25
Joined: Fri Nov 10, 2017 9:48 pm

Re: Adding huge numbers as general text shows as numbers

Post by angelcalvasp »

Tried with latest 2018.2.3

this number
0112201701179128754100120010110051994582523037018
I want it as plain text
Error.png
Error.png (16.23 KiB) Viewed 3541 times
same thing happens with the barcode
angelcalvasp
Posts: 25
Joined: Fri Nov 10, 2017 9:48 pm

Re: Adding huge numbers as general text shows as numbers

Post by angelcalvasp »

HighAley wrote: Wed Jan 03, 2018 1:05 pm Hello.

Please, check the type of this column.
If you want to see it as a string then the column should be a string type.

If you still need our help, please, send us your report template with sample data.

Thank you.


what column? this isnt a column its just a plain ol textbox
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Adding huge numbers as general text shows as numbers

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data which reproduces the issue for analysis.

Thank you.
angelcalvasp
Posts: 25
Joined: Fri Nov 10, 2017 9:48 pm

Re: Adding huge numbers as general text shows as numbers

Post by angelcalvasp »

I have attached the sample data and the report
Attachments
Huge Numbers problem.rar
(169.11 KiB) Downloaded 166 times
Post Reply