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

Bug 332863

Summary: Problem in WordEmitter: The first inline element in a grid cell will take the style of the grid
Product: z_Archived Reporter: Dmitry Balzer <balzerd>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: VERIFIED FIXED QA Contact: Xiaodan Wang <xwang>
Severity: major    
Priority: P3 CC: balzerd, bluesoldier
Version: 2.6.0   
Target Milestone: 2.6.2   
Hardware: PC   
OS: Windows XP   
Whiteboard: Need-Auto
Attachments:
Description Flags
sample report none

Description Dmitry Balzer CLA 2010-12-17 10:45:02 EST
Build Identifier: 20100617-1415

The first inline element in a grid cell will take the style of the grid.
This applies to documents generated in Word format only.
As a workaround for this, one must always insert an empty label as the first inline element, which is quite dodgy.

The problematic code is in org.eclipse.birt.report.engine.emitter.wpml.writer.AbstractWordXmlWriter.startTable(IStyle, int)

Reproducible: Always

Steps to Reproduce:
1. Create a BIRT report template with a grid in it
2. Put an inline element in any table cell
3. Change the visual style of that element
4. Preview report in DOC
Comment 1 Xiaoying Gu CLA 2011-02-10 01:03:37 EST
Could you please attach the sample report here?

I can not reproduce this issue with latest 2.6.2 build. My report design is attached.
Comment 2 Xiaoying Gu CLA 2011-02-10 01:12:04 EST
Created attachment 188650 [details]
sample report
Comment 3 Dmitry Balzer CLA 2011-02-10 05:41:33 EST
I have just tested your sample report - this bug is reproducible with BIRT 2.6.0 and *not* reproducible with BIRT 2.6.2 RC2! Thanks!

However, I've encountered another bug in 2.6.2 which is very important, please have a look:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=336796
Comment 4 Xiaoying Gu CLA 2011-02-10 21:13:50 EST
Set as fixed based on comment #3.
Comment 5 Xiaodan Wang CLA 2011-03-15 05:48:52 EDT
Set as Verified.