相关疑难解决方法(0)

iTextSharp - 将Colspan与PdfPRow一起使用

如果它们包含相同数量的列,我可以创建多个行:

table = new PdfPTable(3);

var firstRowCell1 = new PdfPCell( new Phrase ("Row 1 - Column 1"));
var firstRowCell2 = new PdfPCell( new Phrase ("Row 2 - Column 2"));
var firstRowCell3 = new PdfPCell( new Phrase ("Row 3 - Column 3"));
PdfPCell[] row1Cells = { firstRowCell1, firstLineRow2, firstRowCell3 };
var row1 = new PdfPRow(row1Cells);
table.Rows.Add(row1);

var nextRowCell1 = new PdfPCell( new Phrase ("Row 2 - Column 1"));
var nextRowCell2 = new PdfPCell( new Phrase ("Row 2 - Column 2"));
var …
Run Code Online (Sandbox Code Playgroud)

pdf-generation rows itextsharp pdfptable

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

itextsharp ×1

pdf-generation ×1

pdfptable ×1

rows ×1