This is a migrated thread and some comments may be shown as answers.

Excel cell type not a number

1 Answer 158 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Govinda
Top achievements
Rank 1
Govinda asked on 30 Jul 2008, 08:44 PM
Hello,

when I export my report to excel the number values are rendered as cells that are formatted as text. Even if I set the format property on the report textbox to {0:N}. How do I get the output to register as numbers in Excel?

Here's some more information about what I'm doing.

- the datasource for the report is datatable set at runtime
- the textbox values are things like "=Fields.post_po"
- I didn't use the wizard to generate this report
- very basic report with only pageheader, detail, and pagefooter sections

Thank You,
Govinda

1 Answer, 1 is accepted

Sort by
0
Chavdar
Telerik team
answered on 31 Jul 2008, 12:12 PM
Hi Govinda,

The type of the Excel cell depends on the type of the actual value of the TextBox item. If it is numeric (int, float, double, decimal, etc.) a number cell will be created otherwise it will be of type string. A possible reason for the problem could be that Fields.post_po does not return a numeric value.

If you think that this is a problem with the Excel rendering, please open a support ticket and send a sample report which reproduces the issue along with a brief description of the expected behavior.

All the best,
Chavdar
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Govinda
Top achievements
Rank 1
Answers by
Chavdar
Telerik team
Share this question
or