Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gendoc » Error opening generated word document (Possible missing paragraph element)
Error opening generated word document [message #1709933] Fri, 02 October 2015 06:43 Go to next message
Marc FLAUW is currently offline Marc FLAUWFriend
Messages: 151
Registered: July 2009
Senior Member
Hi,

Word reports an error when I open my generated word document (attached), indicating it can't open it because a problem was found with the contents.

The details (also in attached screen capture) are:
Ambiguous cell mapping encountered. Possible missing paragraph element. <p> elements are required before any </tc>/
Location: Part: /word/document.xml, Line 1, Column: 0
index.php/fa/23427/0/

If I let Windows repair the file, then the contents looks ok.

Any idea what might be wrong?

Best regards,

Marc
Re: Error opening generated word document [message #1709937 is a reply to message #1709933] Fri, 02 October 2015 07:20 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
Hello did you try to use clean() method in your template (to use on Strings) ?
This method transform incorrect character which can cause your problems




Re: Error opening generated word document [message #1709940 is a reply to message #1709937] Fri, 02 October 2015 07:31 Go to previous messageGo to next message
Marc FLAUW is currently offline Marc FLAUWFriend
Messages: 151
Registered: July 2009
Senior Member
Hi,

Thanks for tthe response.

I think I did. I have attached my template.

Best regards,

Marc
  • Attachment: gdNfv6.docx
    (Size: 47.15KB, Downloaded 270 times)
Re: Error opening generated word document [message #1709958 is a reply to message #1709940] Fri, 02 October 2015 09:02 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
The error is not quite obvious but it means that you have empty cells in your table (not empty in the meaning of a normal user but in MS Word mind Wink)

I think the gendoc drop is too violent in tables can you please remove the drops in the second column of your word table (page 3) .

If it works can you please open a bug with your templates and a sample model attached ?




Re: Error opening generated word document [message #1709964 is a reply to message #1709958] Fri, 02 October 2015 09:41 Go to previous message
Marc FLAUW is currently offline Marc FLAUWFriend
Messages: 151
Registered: July 2009
Senior Member
Thanks, great analyis!!

I removed the 2 <drop/> statements in the second column of the table and the document is generated without errors.
Bug opened: https://bugs.eclipse.org/bugs/show_bug.cgi?id=478883

Best regards,

Marc
Previous Topic:Displaying packages in order
Next Topic:Adding comments i ntemplate file
Goto Forum:
  


Current Time: Thu Apr 18 08:24:47 GMT 2024

Powered by FUDForum. Page generated in 0.01752 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top