print image whit office application or windows application

G

GhysBoy

Hi all,

I have form contain box load image when the form is open or swicht to
another image whit a next button. It is possible to create a code when I
click on the image to print this image whit windows photographic application
or another. I like windows photographic application because when i print,
it is possible to fit whit multiple format... the image load in my form
load whit this code :

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