Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using iTextsharp and i have two cells and i want to put one cell below another but i am unable to do it,the two cells are coming side by side.

<pre lang="c#"> Cell nmj = new iTextSharp.text.Cell("Spectrum");//CSY
                        nmj.HorizontalAlignment = Element.ALIGN_RIGHT;
                        nmj.BorderWidth = 0;
                        nmj.Colspan = 12;
                        dt.AddCell(nmj);
                        Cell sjj = new iTextSharp.text.Cell("0.42 in/s");
                        sjj.HorizontalAlignment = Element.ALIGN_RIGHT;
                        sjj.BorderWidth = 0;
                        nmj.Colspan = 12;
                        dt.AddCell(sjj);
                        document.Add(dt);
Posted

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