Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#49 Insert cell in a table

open
nobody
None
5
2009-04-01
2009-04-01
Stefano Guidetti
No

hello ... i use VB.NET i have this problem ...

I have write this code but when i debug the page have this error : Impossible convert com.lowagie.text.cell in com.lowagie.text.pdf.pdfpcell

Dim My_Image_Peso As Image = Image.getInstance(My_FilePath & "/Catalog_Weigh.jpg")
Dim My_Cell As New Cell()

My_Cell.add(My_Image_Peso)
My_Cell.add(New Phrase(New Chunk(My_DataView(i)("Peso").ToString, New Font(My_BaseFont, 8, Font.NORMAL, Drawing.Color.Black))))

My_Table = New PdfPTable(1)
My_Table.getDefaultCell().setBorderWidth(0)
My_Table.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT)
My_Table.addCell(My_Cell)

Discussion

  • This is my file

     
    Attachments