I see in that example, measureString is used on the dataColumnName, but I want to measure the string that is in the cell. I have tried using
Table.rows(i).cells(j).Value to get the contents of the cell, but that always returns a null value. Is there a way to get the contents of the table cell?
>Hi Matt,
>
>We can change the width/height of rows and columns based on the data that in that cell.
>
>1) To change the column width use
>
>table.Columns[ index ].Width
>
>
>2) To change the row height use
>
>
>table.Rows[index].Height
>
>
>3) To get the Column name of the data source use
>
>
>table.Columns[ index ].DataColumnName
>
>
>4) To measure the size of the string use MeasureString() Method of IPDFGraphics.
>
>Please let me know if you have any other questions.
>
>Regards,
>Ajish.
>
>
>
Here is a sample for you to refer
>
>
>
>>I have created a table to be published from a dataset. Is there any way to go through the cells of the pdf table and change the width/height based on the the data that is in that cell?