[Bug 62632] New: Cannot remove BodyElements from XWPFTableCell

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 62632] New: Cannot remove BodyElements from XWPFTableCell

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=62632

            Bug ID: 62632
           Summary: Cannot remove BodyElements from XWPFTableCell
           Product: POI
           Version: 3.17-FINAL
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XWPF
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

I would like to remove all content from a XWPFTableCell. But there seems to be
no way of doing this.

I can remove paragraphs from a XWPFTableCell, by using the removeParagraph(int
pos) method, but then I am left with 2 problems:

* the removeParagraph(int pos) method does not change the "bodyElements"
member, which gives problems when later getBodyElements() is called, since the
removed paragraph is still in the list
* I am unable to remove other content from the XWPFTableCell, like for example
a XWPFTable

As workaround I currently set all the runs of all the paragraphs to the text ""
and I remove all the TableRows of every XWPFTable that is in the cell. The
problem with this workaround is that I end up with a lot of "enters" in the
document.

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

Reply | Threaded
Open this post in threaded view
|

[Bug 62632] Cannot remove BodyElements from XWPFTableCell

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=62632

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

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

Reply | Threaded
Open this post in threaded view
|

[Bug 62632] Cannot remove BodyElements from XWPFTableCell

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=62632

chris <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

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