How can I set cell width and height in itextsharp pdf cell ceration using c#. I just use
cell.width = 200f;
But it should display the error message.
width can not be set.
What should I do?..
See Question&Answers more detail:osHow can I set cell width and height in itextsharp pdf cell ceration using c#. I just use
cell.width = 200f;
But it should display the error message.
width can not be set.
What should I do?..
See Question&Answers more detail:osYou don't set the width of a cell.
you should set the width of the columns. And you can do that by applying them on the table object:
float[] widths = new float[] { 1f, 2f };
table.SetWidths(widths);
The answer from Neha is to set the width of the table object
more reference material here: http://www.mikesdotnetting.com/Article/86/iTextSharp-Introducing-Tables