Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Adding TextBoxField to Table Cell

$
0
0
I'm trying to add a textboxfield to a cell, but receiving a null reference exception error. Here is the code: Dim commentTbRow As Row = ana_tbl.Rows.Add commentTbRow.FixedRowHeight = 80 Dim commentTbCell As Cell = New Cell commentTbCell.ColSpan = 6 Dim textBoxField11 As TextBoxField = New TextBoxField() textBoxField11.PartialName = "Comment_tb" textBoxField11.Value = "" textBoxField11.Height = 70 textBoxField11.Multiline = True textBoxField11.Width = 500 commentTbCell.Paragraphs.Add(textBoxField11) commentTbRow.Cells.Add(commentTbCell) Can you please tell me where I'm going wrong? Thanks!

Viewing all articles
Browse latest Browse all 3131

Trending Articles