You must create a test code that I can run. 

> -----Original Message-----
> From: Sameer Kumar [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 14, 2005 3:28 PM
> To: Paulo Soares
> Subject: Re: [iText-questions] problem in table
> 
> hi paulo
> this is my function  which is generate code
> pdfPBlankTable--this is my inner table
> prodtable-outer table
> instanceCell -is my outer table PDFPCELL
> 
> this  function is called in for loop
> its generate table in column wise
> 
> code is so big  thats why i am posting only piece of code  
> for outer table i
> ahve already set  setSplitRows()
> 
> this
> i have need urgent help
> 
> 
> 
> 
> public void constblankTable(CharacteristicVO 
> newCharacteristicVO , ArrayList
> itemInstanceList,String typeofcolumn){
>   System.out.println("at the start constblankTable");
>   System.out.println("at the start constblankTable
> itemInstanceList.size()="+itemInstanceList.size());
>   PdfPTable pdfPBlankTable=new PdfPTable(1);
>   pdfPBlankTable.setSpacingBefore(0);
>   pdfPBlankTable.setSpacingBefore(0);
>   pdfPBlankTable.setSplitRows(true);
>   System.out.println(" constblankTable outer for loop");
>   System.out.println("blankrow=="+blankrow);
>   for(int blankwrks=0;blankwrks<blankrow;blankwrks++){
>    System.out.println(" constblankTable inner for loop");
>    if
> (newCharacteristicVO.getCharateristicType().equalsIgnoreCase("
> dropdown")) {
>     ArrayList comboValues =
> newCharacteristicVO.getCharacteristicElementList();
>     System.out.println("constblankTable combobox");
>     PdfPCell cellnew = new PdfPCell();
>     cellnew.setColspan(1);
>     cellnew.setMinimumHeight(20f);
>     //cellnew.setWidth(new
>     // Float(charcellwidth).toString());
>     //cellnew.setLeading(30);
>     cellnew
>       .setBackgroundColor(Color.WHITE);
>     cellnew
>       .setHorizontalAlignment(Cell.ALIGN_CENTER);
>     cellnew
>       .setVerticalAlignment(Cell.ALIGN_CENTER);
>     String name = ""
>       +new Double(Math.random()).toString()+"-"
>       + blankwrks+"-";
>     cellnew
>       .setCellEvent(new MyComboCellEventListner(writer, name));
>     pdfPBlankTable.addCell(cellnew);
>     }
>    else {
>    if (newCharacteristicVO.getCharateristicType()
>      .equalsIgnoreCase("multiBox")) {
>     PdfPCell cellnew = new PdfPCell();
> 
>     //adjustUI(newCharacteristicVO);
> 
>     String value = "multiBox";
>     cellnew.setColspan(1);
>     cellnew.setMinimumHeight(20f);
>     //cellnew.setWidth(new
>     // Float(charcellwidth).toString());
>     //cellnew.setLeading(30);
>     cellnew
>       .setBackgroundColor(Color.WHITE);
>     cellnew
>       .setHorizontalAlignment(Cell.ALIGN_CENTER);
>     cellnew
>       .setVerticalAlignment(Cell.ALIGN_CENTER);
> 
>     //intsTable.getDefaultCell().setCellEvent(new
>     // MyCellEventListner(writer
>     // ,value
>     // ,typeofcolumn));
>     String name = ""
>       + System
>         .currentTimeMillis()
>       + blankwrks;
>     cellnew
>       .setCellEvent(new MyMultiBoxCellEventListner(writer, 
> name,value));
>     System.out.println(" constblankTable multibox");
>     pdfPBlankTable.addCell(cellnew);
>    } else {
>     System.out.println("text box entry if blanksize==0");
>     PdfPCell cellnew = new PdfPCell();
>     String value = "textbox";
>     cellnew.setColspan(1);
>     cellnew.setMinimumHeight(20f);
>     //cellnew.setWidth(new
>     // Float(charcellwidth).toString());
>     //cellnew.setLeading(30);
>     cellnew
>       .setBackgroundColor(Color.WHITE);
>     cellnew
>       .setHorizontalAlignment(Cell.ALIGN_CENTER);
>     cellnew
>       .setVerticalAlignment(Cell.ALIGN_CENTER);
> 
>     //intsTable.getDefaultCell().setCellEvent(new
>     // MyCellEventListner(writer
>     // ,value
>     // ,typeofcolumn));
>     String name = ""+
>      new Double(Math.random()).toString();
>     cellnew.setCellEvent(new MyTextCellEventListner(writer, 
> name,value));
>     pdfPBlankTable.addCell(cellnew);
>     System.out.println(" constblankTable textbox");
> 
>        }
>      }
> //   PdfPCell instanceCell = new PdfPCell();
> //   instanceCell.setMinimumHeight(20f);
> //   instanceCell.addElement(pdfPBlankTable);
> //   prodtable.addCell(instanceCell);
>    }
>     PdfPCell instanceCell = new PdfPCell();
> 
>     instanceCell.setBackgroundColor(Color.blue);
>     instanceCell.setFixedHeight(blankrow*20f);
>     instanceCell.addElement(pdfPBlankTable);
>     pdfPBlankTable.setSplitLate(false);
>     pdfPBlankTable.setSplitRows(true);
>     writer.fitsPage(pdfPBlankTable);
>     prodtable.addCell(instanceCell);
> 
> System.out.println("prodtable.getRows().size()==="+pdfPBlankTa
> ble.getRows().
> size());
>     writer.fitsPage(prodtable);
> //    try{
> //     document.add(prodtable);
> //     }catch(BadElementException bele){
> //
> //     }catch(DocumentException documentException){
> //
> //   }
>   }
> ----- Original Message ----- 
> From: "Paulo Soares" <[EMAIL PROTECTED]>
> To: "Sameer Kumar" <[EMAIL PROTECTED]>;
> <[email protected]>
> Sent: Monday, February 14, 2005 4:08 PM
> Subject: RE: [iText-questions] problem in table
> 
> 
> > You need to enable setSplitRows(). It's enabled by default 
> in the latest
> > release.
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On
> > > Behalf Of Sameer Kumar
> > > Sent: Monday, February 14, 2005 5:05 AM
> > > To: [email protected]
> > > Subject: [iText-questions] problem in table
> > >
> > > hi
> > >
> > >
> > > i have nested  PdfPTable  my  outer table  column contain
> > > table which is more then one page
> > >
> > > then got   error
> > >
> > > ERROR: Infinite table loop
> > >
> > > at the last after rendering the table
> > >
> > > Thanks & Regards
> > >
> > > Sameer kumar
> > > Ext-1519
> > > **************************************************************
> > > ******************
> > > Network Programs is a SEI-CMM Level 5 & ISO 9001: 2000
> > > Certified Company
> > > **************************************************************
> > > ******************
> > > The information contained in this communication (including
> > > any attachments) is
> > > intended solely for the use of the individual or entity to
> > > whom it is addressed
> > > and others authorized to receive it. It may contain
> > > confidential or legally
> > > privileged information. If you are not the intended recipient
> > > you are hereby
> > > notified that any disclosure, copying, distribution or taking
> > > any action in
> > > reliance on the contents of this information is strictly
> > > prohibited and may be
> > > unlawful. If you have received this communication in error,
> > > please notify us
> > > immediately by responding to this email and delete it from
> > > your system.
> > > Network Programs (India) Limited is neither liable for the
> > > proper and complete
> > > transmission of the information contained in this
> > > communication nor for any
> > > delay in its receipt.
> > > **************************************************************
> > > ******************
> > >
> > >
> 
> 
> **************************************************************
> ******************
> Network Programs is a SEI-CMM Level 5 & ISO 9001: 2000 
> Certified Company
> **************************************************************
> ******************
> The information contained in this communication (including 
> any attachments) is
> intended solely for the use of the individual or entity to 
> whom it is addressed
> and others authorized to receive it. It may contain 
> confidential or legally
> privileged information. If you are not the intended recipient 
> you are hereby
> notified that any disclosure, copying, distribution or taking 
> any action in
> reliance on the contents of this information is strictly 
> prohibited and may be
> unlawful. If you have received this communication in error, 
> please notify us
> immediately by responding to this email and delete it from 
> your system.
> Network Programs (India) Limited is neither liable for the 
> proper and complete
> transmission of the information contained in this 
> communication nor for any
> delay in its receipt.
> **************************************************************
> ******************
> 
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to