Bug 81208

Summary: Document header error: "No text of specified style in document"
Product: LibreOffice Reporter: Gerhard T. <gerhard.temper>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: medium CC: cno, c_strobbe-fdo, jorendc
Version: 4.2.5.2 release   
Hardware: Other   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: File to reproduce the problem
New test file to reproduce the issue (DOCX)

Description Gerhard T. 2014-07-11 06:28:44 UTC
Created attachment 102593 [details]
File to reproduce the problem

Attached docx file uses a filename field in the document header.

Opening the file with MS Office the filename is shown correctly in the document header.

Opening the file with LibreOffice an error message ("Error! No text of specified style in document. ...") is shown in addition to the filename.
Comment 1 Christophe Strobbe 2014-07-11 09:42:33 UTC
Created attachment 102608 [details]
New test file to reproduce the issue (DOCX)

I have tried to reproduce the issue using the following steps:
1. In MS Word 2010, create a file, save it and add a header (Insert > Header)
2. In the header, add the FileName field (Insert > Quick Parts > Field > FileName)
3. To compare the support in headings versus the body, you can also insert the FileName field in the body. 
4. Close the file, then open it in LibreOffice. Check whether the FileName field is correctly rendered. 

I opened the file in LibreOffice 4.0.4.2, 4.1.0.4 and 4.2.5.2 on Windows 7 (32 bits) and saw no error messages; the rendering was the same as in Microsoft Word 2010. The attached file is the test file that I used.
Comment 2 Cor Nouws 2014-07-11 11:47:59 UTC
Comment on attachment 102608 [details]
New test file to reproduce the issue (DOCX)

correct mimi type
Comment 3 Cor Nouws 2014-07-11 11:54:21 UTC
Hi Gerhard,

Thanks for filing - in your document I see more fields, conditional text etc.
Maybe it's good to try with a clear test?
Cor
Comment 4 Jorendc 2014-07-16 19:56:48 UTC
Lets mark this bug report as INVALID since the fact creating a new test document (see comment 1) doesn't result in same behavior. Maybe your test document is corrupted.

Please test again by creating a new document yourself.
Feel free to mark again as UNCONFIRMED if you still can reproduce this.

Kind regards,
Joren

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.