Use a PdfPTable, you'll get no answers on Table. 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Kurakula, Suneetha (HCF)
> Sent: Tuesday, November 08, 2005 4:39 PM
> To: '[email protected]'
> Subject: [iText-questions] cannot insertTable into existing Table
> 
> Hi All,
> 
>  
> 
> I am trying to insert subtable with 4 columns into existing 
> table  with 4 columns using
> 
>  
> 
>  datatable.insertTable(checkDetailTable,(i+1),1);
> 
>  
> 
> java.lang.IllegalArgumentException: setElement - position 
> already taken
> 
> at com.lowagie.text.Row.setElement(Unknown Source)
> 
> at com.lowagie.text.Table.insertTable(Unknown Source)
> 
> at com.lowagie.text.Table.insertTable(Unknown Source)
> 
> at 
> us.ma.state.hcf.scproviders.web.servlets.AllUnmatchedPayerPDF.
> writeUnmatchedPayerPayments(AllUnmatchedPayerPDF.java:244)
> 
> at 
> us.ma.state.hcf.scproviders.web.servlets.AllUnmatchedPayerPDF.
> generate(AllUnmatchedPayerPDF.java:42)
> 
> at 
> us.ma.state.hcf.scproviders.web.servlets.PDFGenerator.generate
> (PDFGenerator.java:14)
> 
> at 
> us.ma.state.hcf.scproviders.web.servlets.SCProvidersServlet.se
> rvice(SCProvidersServlet.java:36)
> 
> at 
> us.ma.state.hcf.scproviders.web.servlets.SCProvidersServlet._j
spService(SCProvidersServlet.java:17)
> 
> at 
> us.ma.state.hcf.scproviders.web.servlets.SCProvidersJSP.servic
> e(SCProvidersJSP.java:95)
> 
>  
> 
> also I tried 
> 
>  
> 
> datatable.insertTable(checkDetailTable);
> 
>  
> 
> java.lang.ClassCastException: com.lowagie.text.Table
> 
>     at com.lowagie.text.pdf.PdfTable.<init>(Unknown Source)
> 
>     at com.lowagie.text.pdf.PdfDocument.bottom(Unknown Source)
> 
>     at com.lowagie.text.pdf.PdfWriter.fitsPage(Unknown Source)
> 
>     at 
> us.ma.state.hcf.scproviders.web.servlets.AllUnmatchedPayerPDF.
> writeUnmatchedPayerPayments(AllUnmatchedPayerPDF.java:247)
> 
>     at 
> us.ma.state.hcf.scproviders.web.servlets.AllUnmatchedPayerPDF.
> generate(AllUnmatchedPayerPDF.java:42)
> 
>     at 
> us.ma.state.hcf.scproviders.web.servlets.PDFGenerator.generate
> (PDFGenerator.java:14)
> 
>     at 
> us.ma.state.hcf.scproviders.web.servlets.SCProvidersServlet.se
> rvice(SCProvidersServlet.java:36)
> 
>     at 
> us.ma.state.hcf.scproviders.web.servlets.SCProvidersServlet._j
spService(SCProvidersServlet.java:17)
> 
>     at 
> us.ma.state.hcf.scproviders.web.servlets.SCProvidersJSP.servic
> e(SCProvidersJSP.java:95)
> 
>     at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:252)
> 
>     at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:173)
> 
>     at 
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyH
> eaderFilter.java:81)
> 
>     at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:202)
> 
>     at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:173)
> 
>     at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.java:213)
> 
>     at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.java:178)
> 
>     at 
> org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(Cust
> omPrincipalValve.java:39)
> 
>     at 
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(
> SecurityAssociationValve.java:153)
> 
>     at 
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccCont
> extValve.java:59)
> 
>     at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:126)
> 
>     at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:105)
> 
>     at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java:107)
> 
>     at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdap
> ter.java:148)
> 
>     at 
> org.apache.coyote.http11.Http11Processor.process(Http11Process
> or.java:856)
> 
>     at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
r.processConnection(Http11Protocol.java:744)
> 
>     at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolT
> cpEndpoint.java:527)
> 
>     at 
> org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterS
> laveWorkerThread.java:112)
> 
>     at java.lang.Thread.run(Thread.java:534)
> 
>  
> 
> Can some one please help me why I am getting this exception? 
> Where I am doing wrong? 
> 
> Thanks
> 
> Suneetha Kurakula
> 
> Ph No : (617) 988 3135
> 
>  
> 
> 


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to