You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2012/02/07 22:41:49 UTC

DO NOT REPLY [Bug 52619] New: When addding to a table, the first and second row's data appears on the first row

https://issues.apache.org/bugzilla/show_bug.cgi?id=52619

             Bug #: 52619
           Summary: When addding to a table, the first and second row's
                    data appears on the first row
           Product: POI
           Version: 3.6
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XWPF
        AssignedTo: dev@poi.apache.org
        ReportedBy: rnichol7@hotmail.com
    Classification: Unclassified


Created attachment 28278
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28278
This jar contains the output (.docx) and the source that created it

I am new to reporting poi bugs, so be gentle on me (please).
I am trying to create table with 5 rows, 3 columns.  I am using the example
(simple table) that Gisle provided.

The data for the ffirst row (0) and the second row (1) both appear on same
line. There is an empty row at the bottom.  It took the sample code (which is a
3 x 3 table with some of the cells left empty) and tried to fill in each cell,
and got the same results.

I am attaching the word file, and the source file to this report.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 52619] When addding to a table, the first and second row's data appears on the first row

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52619

--- Comment #1 from Richard Ngo <rn...@tk20.com> 2012-02-07 22:04:08 UTC ---
Created attachment 28279
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28279
docx file

Hi,

I tried this and there were error on your code. Note sure what you were trying
to do here.

XWPFTable t2 = doc.createTable();
t2.addRow(new XPWFTableRow(0));

But removing that, it did give me the correct table.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org