https://bz.apache.org/bugzilla/show_bug.cgi?id=65246

--- Comment #6 from 陈起 <[email protected]> ---
Thanks for the developer's reply, but I don't seem to fully understand the
meaning of your reply message.
This error is an abnormal situation that occurred in the production environment
of our application. The user has a (.doc) document. The (.doc) is converted to
(.html) through our back-end service and then output to the front page for
display. Here we use The code is as follows:

WordToHtmlConverter wordToHtmlConverter = new
WordToHtmlConverter(DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument());

However, the displayed (.html) format and the table structure in the (.doc)
document are incorrect. After inspection, the (.doc) document is correct, so I
found the apache-poi source code for debugging, and then traced the following
code:

org.apache.poi.hwpf.converter.WordToHtmlConverter#processTable()
org.apache.poi.hwpf.converter.AbstractWordConverter#getNumberRowsSpanned()

I found that something was wrong when getting cells across rows. I uploaded the
sample code and screenshots with wrong results. attachment 2 is my error
demonstration example, attachment 3 is the structure in (.doc), attachment 4 is
the conversion. The structure after becoming (.html).
After that, I tried to fix this (AbstractWordConverter#getNumberRowsSpanned())
class method and released it to the production environment. The current
situation seems to be no problem. In the attachment 1 above, I tried to repair
the method, but I am not sure whether it is correct or the bug is still left.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to