tmtum
03-06-2005, 01:33 AM
هدا الكود لطباعة الصور الموجود مسارها في مربع النص كيف أخلي يطبع الصور الموجودة في مربع الصورة فورا بليز بدي رد سريع لأن ماعندي وقت للانتظار
Private Sub PrintGraphic(ByVal sender As Object, _
ByVal ev As PrintPageEventArgs)
' Create the graphic using DrawImage
ev.Graphics.DrawImage(Image.FromFile(TextBox1.Text), _
ev.Graphics.VisibleClipBounds)
' Specify that this is the last page to print
ev.HasMorePages = False
End Sub
Private Sub PrintGraphic(ByVal sender As Object, _
ByVal ev As PrintPageEventArgs)
' Create the graphic using DrawImage
ev.Graphics.DrawImage(Image.FromFile(TextBox1.Text), _
ev.Graphics.VisibleClipBounds)
' Specify that this is the last page to print
ev.HasMorePages = False
End Sub