view image

G

GhysBoy

Hi all,

I'm write this code to load image.. In a jpg format is ok ... what can I do
to work whit format tif
thanks for your help



Private Sub Form_Current()
Dim strBase As String, strChemin As String
On Error GoTo err_plan
Me.Image.Picture = ""
' Répertoire de base
strBase = CurrentProject.Path & "\Plans livre renvoi\"

' Chemin complet de l'image
strChemin = strBase & "1-0001.tif"

' Charger l'image
Me.Image.Picture = strChemin

exit_AfficherCroquis:
Exit Sub
err_plan:
Me.Image.Picture = ""
Resume exit_AfficherCroquis
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top