Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317831

Summary: Wrong data types in excel export
Product: z_Archived Reporter: gerd.guehne.ecg
Component: BIRTAssignee: Birt-Converter-inbox <Birt-Converter-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: bluesoldier
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description gerd.guehne.ecg CLA 2010-06-24 10:24:14 EDT
Build Identifier: 20100218-1602

Hello,

We found a problem in the export to excel from an html report. Numbers were detected as strings. Because of this we must select all columns/rows in the excel files and change the format to number.
The ExcelUtil class has a method called "getType" which only use instanceOf to detect numbers. An additional check of NaN works better. Because of this the method "addDataContent" in class ExcelEmitter does not work correctly. 

This problem was found in the latest org.eclipse.birt.report.engine.emitter.prototype.excel.source_2.5.2.v20100201.jar library.

When will a bug fix be available?   

Thanks for your answer!


Reproducible: Always

Steps to Reproduce:
1. generate a html report
2. export to excel
3. not all cells are a type of number
Comment 1 Xiaoying Gu CLA 2010-08-02 04:06:15 EDT
Would you please attache a example report using the sample db?
I can not reproduce this issue in current release.
Comment 2 Xiaoying Gu CLA 2010-08-24 02:02:07 EDT
Set as worksforme based on comment #1

Feel free to reopen if have any problem or attaching a sample that can reproduce the issue..