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

Bug 350278

Summary: Excel emitter generates corrupt files
Product: z_Archived Reporter: Thierry Thierry <tbl0605>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: RESOLVED FIXED QA Contact: Xiaoying Gu <bluesoldier>
Severity: major    
Priority: P3 CC: bluesoldier
Version: 2.6.2   
Target Milestone: 3.7.0   
Hardware: PC   
OS: Windows 7   
Whiteboard: Non-Auto
Attachments:
Description Flags
report
none
css styles
none
data source
none
corrupt excel file none

Description Thierry Thierry CLA 2011-06-24 10:46:55 EDT
Created attachment 198540 [details]
report

The report engine generates corrupt excel files when a grid item has no data to display (the data set bound to this grid retrieves no data).

Step to reproduce :
1. generate an xls file (through the report engine) using the sample.xml, test.css and test.rptdesign attached to this bug report.
NB : in test.rptdesign, the xml data source path is set to c:/sample.xml and the css file is set to c:/test.css
2. try to open the generated xls file using Office 2007
Comment 1 Thierry Thierry CLA 2011-06-24 10:47:25 EDT
Created attachment 198541 [details]
css styles
Comment 2 Thierry Thierry CLA 2011-06-24 10:48:17 EDT
Created attachment 198542 [details]
data source
Comment 3 Thierry Thierry CLA 2011-06-24 10:49:32 EDT
Created attachment 198543 [details]
corrupt excel file
Comment 4 Xiaoying Gu CLA 2011-06-27 03:53:56 EDT
This issue did exist in the 2.6.2 release.

But I can not reproduce it in the latest 3.7.0 release. Set as fixed.