I am creating an invoice in Flow Document, I am stuck with the columns span I created a table with 3 columns, 2 to display display the description (with column span 2) and 1 to display the price now I am stuck, when I have a long description, its going to the next line instead of taking the available space for column 3
Example what i have:
Col1 Col2 Col3
1x Burger with 2.00
pizza
what i want:
Col1 Col2 Col3
1x Burger with pizza 2.00
how to handle this in flow document
my code:
headerTable.RowGroups[0].Rows.Add(new TableRow());
headerRow = headerTable.RowGroups[0].Rows[count];
headerRow.Cells.Add(new TableCell(new Paragraph(new Run("1x Burger with Pizza")) { TextAlignment = TextAlignment.Left, FontSize = printsize, FontWeight = semi })
{
ColumnSpan = 2
});
headerRow.Cells.Add(new TableCell(new Paragraph(new Run("2.00")) { TextAlignment = TextAlignment.Right, FontSize = printsize, FontWeight = semi }));
can someone help me with this?
you could try this link. If you follow it, the window is like this.
Hi, @Yasar Khalid. I updated the answer. You could try the code below.