----- Original Message ----- 
From: "Ruslan KULUBAEV" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, October 31, 2006 5:15 PM
Subject: Re: [iText-questions] Question on tablelayout.


> one more question is I would like to create a new Table class inheriting
> from PdfPTable where I want to pass the values of properties to 
> constructor
> it saves me line codes. however when I have
> code like
>
> class MyTable: PdfPTable
> {
>
>   void MyTable(float width, bool ascender ....)
>  {
>
>     this.widthinpercentage = widht;
>
>    ....
>
>
>   }
>
> in main class when  I call
>
> MyTable table = new MyTable(widht, true)
>
> table.AddCell(string)
>
> }
>
> I get Null object reference error. what is wrong?
>

Maybe you didn't initialize the number of columns?

Paulo

> thax.
> Ruslan.
>
> ----Original Message Follows----
> From: "Paulo Soares" <[EMAIL PROTECTED]>
> Reply-To: Post all your questions about iText here
> <[email protected]>
> To: "Post all your questions about iText here"
> <[email protected]>
> Subject: Re: [iText-questions] Question on tablelayout.
> Date: Tue, 31 Oct 2006 16:56:39 -0000
>
> I'm not sure what you're asking. TableLayout provides you information on
> the header rows but you cannot change cell content or attributes.
>
> Paulo
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Ruslan KULUBAEV
> > Sent: Tuesday, October 31, 2006 4:44 PM
> > To: [email protected]
> > Subject: [iText-questions] Question on tablelayout.
> >
> > Hi,
> >
> > I had constructed a table. Have overriden the TableLayout
> > method. My table
> > looks nice it has dotted border. And has two columns. My
> > problem is I want
> > make my table header columns spanned.
> > But I can not get any reference to the cell of my first row inside
> > TableLayout. I guess all table are structured prior to
> > TableLayout get
> > called. I mean in TableLayout referrring to examples all I
> > can is to write
> > using pdfContentByte. Is there anyway of doing like
> >
> > while ( rows < headerRows)
> > {
> >     setcolspan();
> > }
> >
> > regards,
> > Ruslan


-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to