Click here to Skip to main content
15,886,872 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

How can the width of the cell in a PdfPTable(using iTextSharp) be adjusted based on the data present in the cell? If the data is more, the text is getting wrapped, but, I want it to be shown in a single line. How can it be done?

Thanks in advance..
Posted
Updated 1-Sep-10 21:29pm
v2

check there may be the option of off css class

and u can asl this question in Itext forum
 
Share this answer
 
PdfPTable t1 = new PdfPTable(2);
t1.SetTotalWidth(new float[] { 10f, 40f });
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900