Image dynamic avec crystal reports (Vb.net)

Salut,

j'ai réalisé un programme en VB.net,qui sert dans une partie d'imprimer le badge que chaque nouveau employé de la société.
mon problème c'est comment insérer une image dans la base de donnée,et comment appeler mon image dans crystall report depuis cette base ?

Merci


--
هذا والله أعلم

5 réponses

  1. salut moi aussi j ai le meme probleme .
    priere de m 'envoi la reponse si tu la trouver . merci
    1. moi aussi le mm prob qui trouve solution me la passe pleeeeeeeeeeeeeeeeeeeeeeeeaze merci
      1. Private Sub capturePhoto

        dim ImPhoto() as byte 'représente par le type image dans une BD
        If Not Me.PictureBox1.Image Is Nothing Then
        If System.IO.File.Exists(ME_Context.Nom_Fich_Image) Then
        Try
        Dim fs As New IO.FileStream(ME_Context.Nom_Fich_Image, IO.FileMode.Open)
        Dim br As New IO.BinaryReader(fs)
        ImPhoto = br.ReadBytes(CInt(fs.Length))
        br.Close()
        Catch ex As Exception
        MsgBox(ex.Message)
        Exit Sub
        End Try

        End If
        End If

        end sub

        Private Sub affiche_Photo(ByVal Photo() As Byte)

        If Not Photo Is Nothing Then
        Dim ms As New IO.MemoryStream(Photo)
        Me.PictureBox1.Image = Image.FromStream(ms)
        End If

        End Sub