Hi,
I got the following code that adds border to shape (textbox) only if I directly add textbox to word document, but I am adding shape to table cell, then it is not displaying shape textbox in that table cell. What am I doing wrong?
Shape textBox = new Shape(doc, ShapeType.TextBox);
textBox.Width = 200;
textBox.Height = 150;
textBox.Stroke.LineStyle = ShapeLineStyle.Single;
textBox.Stroke.Weight = 6;
textBox.Stroke.Color = Color.Black;
// Create Paragraph and run
Paragraph cell2Paragraph = new Paragraph(doc);
cell2Paragraph.AppendChild(new Run(doc, "Data"));
// Insert Paragraph into the TextBox
textBox.AppendChild(cell2Paragraph);
Cell dataCell = new Cell(doc);
dataCell.AppendChild(cell2Paragraph);
row.AppendChild(dataCell);
Row is of type TableRow. When I generate word document with the above code, it’s not generating textbox with borderv