Hi,
Here is a quick example. Add a button and printdocument to your
form. This will print the file camera.bmp. Hope this helps
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
PrintDocument1.Print()
End Sub
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object,
ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles
PrintDocument1.PrintPage
Dim g As Graphics = e.Graphics
g.DrawImage(Image.FromFile("C:\camera.bmp"), 5, 5)
End Sub
Ken
---------------
Hi
I am looking for sample code to print an image file from VB code image can
be .jpg, .bmp etc.
Thank you in advance,
Shmuel Shulman