Question : I want to hyperlink a image in pdf using vb.net code using  iTextSharp.text and Imports iTextSharp.text.pdf class

I want to hyperlink a image in pdf using vb.net code and  iTextSharp.text and Imports iTextSharp.text.pdf class. I can see code in c# when i google but i would like to see some vb.net examples. my code below is

  Dim ImgLogoURL As String = Server.MapPath("../Imagepath/images/Logo.gif")
            Dim ImgLogo As iTextSharp.text.Image = iTextSharp.text.Image.GetInstance(ImgLogoURL)
   ImgLogo.ScalePercent(50)


            cell = New Cell(ImgLogo)
            cell.Border = 0
            cell.VerticalAlignment = Element.ALIGN_BOTTOM
            cell.HorizontalAlignment = Element.ALIGN_CENTER
            cell.Colspan = 2
            cell.Rowspan = 1
            table.AddCell(cell)

Thanks in advance.

Answer : I want to hyperlink a image in pdf using vb.net code using  iTextSharp.text and Imports iTextSharp.text.pdf class

I got the solution:

     Dim ImgLogoURL As String = Server.MapPath("../Images/Site/logo2.gif")
            Dim ImgLogo As iTextSharp.text.Image = iTextSharp.text.Image.GetInstance(ImgLogoURL)
            ImgLogo.Annotation = New Annotation(0, 0, 0, 0, "../../default.aspx", 3)
            ImgLogo.ScalePercent(50)
Random Solutions  
 
programming4us programming4us