Bug 81208 - Document header error: "No text of specified style in document"
Summary: Document header error: "No text of specified style in document"
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.5.2 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-11 06:28 UTC by Gerhard T.
Modified: 2014-07-16 19:56 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
File to reproduce the problem (96.50 KB, application/vnd.openxmlformats-officedocument.wordprocessingml)
2014-07-11 06:28 UTC, Gerhard T.
Details
New test file to reproduce the issue (DOCX) (25.44 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-07-11 09:42 UTC, Christophe Strobbe
Details

Note You need to log in before you can comment on or make changes to this bug.
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