Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] rtf:bug report

毕大龙

2006-06-29

Replies:

com.lowagie.text.rtf.table.RtfRow    (line:243)
       if(rtfCell.getRowspan() > 1) {
          ArrayList rows = this.parentTable.getRows();
          for(int j = 1; j < rtfCell.getRowspan(); j++) {
            RtfRow mergeRow = (RtfRow) rows.get(this.rowNumber + j);
            if(this.rowNumber + j < rows.size()) {
               RtfCell rtfCellMerge = (RtfCell)
mergeRow.getCells().get(realCellIndex);
               rtfCellMerge.setCellMergeChild(rtfCell);
            }
            if(rtfCell.getColspan() > 1) {
               int k = rtfCell.getColspan();
               while(k > 1 && (realCellIndex + 1 <
mergeRow.getCells().size())) {
                  mergeRow.getCells().remove(realCellIndex + 1);
                  k--;
                  realCellIndex--;
/* after remove the merge cell, realCellIndex must change */
               }
            }
          }
       }
       realCellIndex = realCellIndex + rtfCell.getColspan();



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.