Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330544 - 'Show header on first' [first page] option isn't working for Word DOC files
Summary: 'Show header on first' [first page] option isn't working for Word DOC files
Status: VERIFIED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal with 3 votes (vote)
Target Milestone: 3.7.0 M7   Edit
Assignee: Yu Chen CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard: Obsolete
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-18 05:09 EST by Dmitry Balzer CLA
Modified: 2011-05-11 23:21 EDT (History)
4 users (show)

See Also:


Attachments
Header options in Word (38.20 KB, image/jpeg)
2010-11-19 04:26 EST, Dmitry Balzer CLA
no flags Details
DOC file exported by 3.7.0 M7 (15.08 KB, application/msword)
2011-05-10 02:00 EDT, Xiaoying Gu CLA
no flags Details
sample report design (3.52 KB, text/xml)
2011-05-10 02:00 EDT, Xiaoying Gu CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Balzer CLA 2010-11-18 05:09:37 EST
Build Identifier: 20100617-1415

The 'Show header on first' option isn't working for Word DOC files, although Word has has a similar option that hides the header on the first report page.

Deactivating 'Show header on first' option in BIRT Report Designer causes the header to disappear on ALL pages when previewed as a Word DOC. At the same time, this feature works fine for PDF.

Reproducible: Always

Steps to Reproduce:
1. Create any report that contains more than one page.
2. Add a header to the report.
3. Disable 'show header on first' option.
4. Preview report in Word DOC format - all headers disappear.
Comment 1 Xiaoying Gu CLA 2010-11-18 21:22:55 EST
This is the limitation of Word. Word don't have the option to show header only on the 1st page.
Comment 2 Dmitry Balzer CLA 2010-11-19 04:26:47 EST
Created attachment 183454 [details]
Header options in Word
Comment 3 Dmitry Balzer CLA 2010-11-19 04:59:28 EST
Hi Xiaoying,

please check the screenshot I've just attached. 
There is an option in Word that allows for different headers/footers to be shown on the first page of the document.

Could BIRT make use of this feature to add an empty header to the first page and the intended header to all further pages?

Cheers
Comment 4 Xiaoying Gu CLA 2010-11-22 01:33:17 EST
Sorry, I did not check the word option carefully. I can see the issues now.
Comment 5 Dmitry Balzer CLA 2010-11-22 05:35:01 EST
Thanks Xiaoying, 
look forward to hearing from you.
Comment 6 Dmitry Balzer CLA 2010-11-30 06:04:37 EST
Hi Xiaoying, 
could you please provide an update on this?
Any chance this fix can make it into 2.6.2?

Thank you,
Dmitry
Comment 7 Dmitry Balzer CLA 2011-05-09 07:17:21 EDT
Is this issue now fixed in https://bugs.eclipse.org/bugs/show_bug.cgi?id=287414 ?
Comment 8 Dmitry Balzer CLA 2011-05-09 08:59:57 EDT
Tested BIRT 3.7.0 M7 - it still hides header on All pages in Word is 'Show header on first' is disabled.
Comment 9 Xiaoying Gu CLA 2011-05-10 01:59:26 EDT
The issue has been fixed in 3.7M7.

Please see my attached DOC file and test report. The page header was hidden for the first page with this options diabled.
Comment 10 Xiaoying Gu CLA 2011-05-10 02:00:03 EDT
Created attachment 195171 [details]
DOC file exported by 3.7.0 M7
Comment 11 Xiaoying Gu CLA 2011-05-10 02:00:24 EDT
Created attachment 195172 [details]
sample report design
Comment 12 Yu Chen CLA 2011-05-10 03:51:04 EDT
This bug only exists when the first HTML page will be split into several DOC pages. This kind of pagination is done by MS WORD, so we are not able to know where the page break will occur. For example, the first HTML page will be split into 3 DOC pages by MS WORD. Our DOC emitter handles the page header/footer for every HTML page, so the 3 DOC pages will not have the header.

Currently, because the default layout preference is Fixed layout, One HTML page corresponds to one DOC page, the bug is not likely reproducible.
Comment 13 Xiaoying Gu CLA 2011-05-11 23:21:29 EDT
Verified in 3.7M7.