Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352067 - Word doc has unwanted hidden text (vanish xml elements)
Summary: Word doc has unwanted hidden text (vanish xml elements)
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7.1   Edit
Assignee: Yu Chen CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-14 06:22 EDT by T. Fischer CLA
Modified: 2012-03-26 06:41 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description T. Fischer CLA 2011-07-14 06:22:20 EDT
Build Identifier: 3.7.0

The generated Word document has tons of hidden text returns (paragraphs).
That is undesirable for customers who use hidden text on purpose.

Workaround: Delete all occurences of the following line from the XML output:
<w:pPr><w:rPr><w:vanish/></w:rPr></w:pPr>

Vanish Element (Hidden Text): http://msdn.microsoft.com/en-us/library/cc547047.aspx

Applies to older BIRT versions, too.

BTW: Is there a way to produce Word hidden text with BIRT?

Reproducible: Always
Comment 1 T. Fischer CLA 2011-07-14 06:38:41 EDT
Correction to the workaround: The following occurrences have to be deleted:
<w:p>
    <w:rPr>
        <w:vanish w:val="on"/>
    </w:rPr>
</w:p>
Attention: The indent varies.
Comment 2 T. Fischer CLA 2011-07-17 02:49:47 EDT
2. correction: The workarounds do NOT work:

Comment 1 workaround was used on the XML-document saved with word and leaves visible returns instead of invisible ones.

Comment 2 workaround throws an error when opening the edited file with word:
"Ambiguous cell mapping encountered. <p> elements are required before every </tc>"
(German: Nicht eindeutige Zellenzuordnung wurde festgestellt. <p> Elemente sind vor jedem </tc> erforderlich.)
_______________

NEW WORKAROUND: Place emty BIRT-labels on every position of hidden returns to produce visible returns instead. The seemingly required paragraphs seem always to be between two tables.

The reason is probably the same as described in Bug 204261 comment 3.
Comment 3 Yu Chen CLA 2011-07-21 04:31:21 EDT
Fixed.
Comment 4 T. Fischer CLA 2012-03-26 06:41:27 EDT
No hidden text found in the generated Word document with BIRT 3.7.2. Thank you!