08-01-22, 05:16 PM
اذهب الى الاداة PrintDocument1 موجودة في المديول و اكتب الكود التالي :
كمثال بسيط :
PHP كود :
e.Graphics.DrawImage(PictureBox1.Image, 50, 50, 100, 50)
كمثال بسيط :
PHP كود :
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
PrintDocument1.Print()
End Sub
Private Sub PrintDocument1_PrintPage(sender As Object, e As PrintPageEventArgs) _
Handles PrintDocument1.PrintPage
Dim newImage As Image = Image.FromFile("c:\logo.png")
e.Graphics.DrawImage(newImage, 50, 50, 100, 80)
End Sub
سبحان الله وبحمده سبحان الله العظيم و الحمد لله ولا اله الا الله والله اكبر
