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

Bug 321297

Summary: TOC is not generated by Word emitter
Product: z_Archived Reporter: Adriana N <anitescu>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: bluesoldier
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Generated Word document
none
Report none

Description Adriana N CLA 2010-07-30 03:59:32 EDT
Build Identifier: v20100210-0630

Create a simple report and define TOC entries.
When generating as PDF, we can see them on the left as Signets
When generating as Word, they are lost. 
I try to insert or refresh TOC, but I get the following message:
"Aucune entrée de table des matières n'a été trouvée."
In other words, it does not find any TOC entry ...

Eclipse version details:
Eclipse Business Intelligence and Reporting Tools SDK
Version: 2.5.2.v20090925-7l9V7YFT0z0-DX3kf8ShK8
Build id: v20100210-0630

Note: I defined it as a Major problem because we need to reformat all titles in the generating document in order to generate the TOC. And this may be time consuming for large documents.


Reproducible: Always

Steps to Reproduce:
1. Create a simple report and define TOC entries.
2. Run -> View report -> as DOC  or view in web viewer and export as DOC)
3. Open Word document -> no TOC entry is found.
Comment 1 Adriana N CLA 2010-07-30 04:03:23 EDT
Created attachment 175545 [details]
Generated Word document
Comment 2 Adriana N CLA 2010-07-30 04:04:03 EDT
Created attachment 175546 [details]
Report
Comment 3 Adriana N CLA 2010-07-30 04:31:50 EDT
Also reproduced in the last version: 

Version: 2.6.0.v20100617-7m9f77FT0z0-H04OvPZz0D4
Build id: v20100609-1613
Comment 4 Xiaoying Gu CLA 2010-07-30 04:41:50 EDT
To see the table content entry
after opening the doc file: 

1: put the insert key where you want to insert the contents ,
2: use the insert and reference --> Table of contents.
3: press Alt+F9 ; then the String "{TOC \o "1-3" \h\z\u}" wll be out , just add
"\f" after the "\u" ,And then press Alt + F9.
4: press the key F9.Then the Contents will be shown .



Similar issue:https://bugs.eclipse.org/bugs/show_bug.cgi?id=317418

*** This bug has been marked as a duplicate of bug 208732 ***