Quantcast
Viewing all articles
Browse latest Browse all 3131

Table vertical splitting

Hello, Following is the sample code for vertical splitting in which I add 30 cloumns Page page1 = DemoDocument.Pages.Add(); Table tab = new Table(); page1.Paragraphs.Add(tab); tab.IsBroken = true; tab.ColumnAdjustment=ColumnAdjustment.AutoFitToContent; Row headerRow= new Row(); tab.Rows.Add(headerRow); tab.HorizontalAlignment = HorizontalAlignment.Center; tab.IsBroken = true; tab.Broken=TableBroken.VerticalInSamePage; tab.DefaultCellBorder=new BorderInfo(BorderSide.All,0.1f); for (int i = 0; i < 30; i++) { Cell c1 = new Cell(); c1.Paragraphs.Add(new TextFragment("Cell"+i)); headerRow.Cells.Add(c1); } DemoDocument.Save("H:/DemoDoc.pdf"); table is verticaly broken but my requirement is like I should be able to repeat some columns in new line as well to identify a particular row.Like we should be able to repeat column(s) which are marked as primary key to identify row uniquely. Thank You.

Viewing all articles
Browse latest Browse all 3131

Trending Articles