I am trying to add an image to a table cell that is in a header and when i place it in the table cell It no longer appears in the pdf. This same thing also occurrs when I try to nest a table, the nested table does not appear. Any help would be great, below is my code to add to a header section.
Private Sub BuildHeader(ByRef header As HeaderFooter)
Dim dhhsLogo As Image
Dim headerTable As Table
Dim detailsTable As Table
Dim mainRow As Row
Dim detailRow1 As Row
Dim detailRow2 As Row
'load image
dhhsLogo = New Image(header)
dhhsLogo.ImageInfo.ImageFileType = ImageFileType.Wmf
dhhsLogo.ImageInfo.File = DHHS_LOGO_LOCATION
'build details table
detailsTable = New Table
detailRow1 = detailsTable.Rows.Add()
detailRow1.Cells.Add("XXX")
detailRow1.Cells.Add("XXX" & Environment.NewLine & "XXX")
detailRow1.Border = New BorderInfo(Fix(BorderSide.Bottom), 2)
detailRow2 = detailsTable.Rows.Add()
detailRow2.Cells.Add("XXX")
detailRow2.Cells.Add("XXX" & Environment.NewLine & "XXX" & Environment.NewLine & "XXX")
headerTable = New Table
mainRow = headerTable.Rows.Add()
'add the image and table to the main table
mainRow.Cells.Add().Paragraphs.Add(dhhsLogo)
mainRow.Cells.Add().Paragraphs.Add(detailsTable)
'add table to the passed in header
header.Paragraphs.Add(headerTable)
End Sub