06-06-13, 11:40 AM
السلام عليكم ورحمة الله وبركاته
جرب هذا التعديل
PHP كود :
'' ابتداء اوامر الطباعة للتفصيل
Public Sub PrintDocument(ByVal obj As Object, ByVal e As Printing.PrintPageEventArgs)
Dim Img As New Bitmap(TabPage4.Width, TabPage4.Height)
TabPage4.DrawToBitmap(Img, New Rectangle(0, 0, TabPage4.Width, TabPage4.Height))
e.Graphics.DrawImage(Img, New Rectangle(e.MarginBounds.Left, e.MarginBounds.Top, _
e.PageBounds.Width - e.MarginBounds.Left - (e.PageBounds.Width - e.MarginBounds.Right), _
e.PageBounds.Height - e.MarginBounds.Top - (e.PageBounds.Height - e.MarginBounds.Bottom)))
End Sub
السلام عليكم ورحمة الله وبركاته
