Numbers exported to Excel as text

Stimulsoft Reports.NET discussion
Post Reply
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Numbers exported to Excel as text

Post by Jennypi »

Hi,

One of my report allows users to export numbers to Excel files.
The problem that they have is that those numbers are considered as "text" by Excel (the cells have a small green triangle in the corner).
Meaning they can not use those numbers for formulas, and also they are not sortable as numbers (excel sorts them like this: 1-10-2-20 instead of 1-2-10-20).

How can I avoid this problem?
The only solution that we found so far is to export as csv instead of xls, but that is not optimal.

Thank you.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Numbers exported to Excel as text

Post by Ivan »

Hello,

If the TextFormat property of textbox is set to General, then a value is exported as "text".
Please set the TextFormat property of textboxes to Numeric.

Thank you.
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Numbers exported to Excel as text

Post by Jennypi »

Hi,

Thank you for your reply.
I set the TextFormat property to "Number" with 0 decimal digit and no group separator. But those textboxes are still exported as text... don't understand why...

Thanks.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Numbers exported to Excel as text

Post by Ivan »

Hello,

Can you please send us a sample report with data, which reproduces the issue?
Also please send to us the resulting excel file.

Thank you.
Mike Simpkins
Posts: 21
Joined: Tue Nov 30, 2010 1:06 pm
Location: South Dakota

Numbers exported to Excel as text

Post by Mike Simpkins »

Are you sure you are in the right location? In addition to setting the Text Format property to Number, have you also set the property for "Excel Value?" This controls what format the program will send to Excel when it exports. I had trouble with this until I stumbled across the Excel Value property.

Good Luck


Mike Simpkins

Clueless in South Dakota
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Numbers exported to Excel as text

Post by Jennypi »

Hi Mike,

What am I supposed to write in this "Excel value" property? Could you please give an example?

Thank you.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Numbers exported to Excel as text

Post by Jan »

Hello,

You can find ExcelValue property at text component. If you want export to Excel other value (not from Text property) you can use ExcelValue property.

Thank you.
Post Reply