تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[VB.NET] يرجى المساعدة في تعديل كود الطباعة
#10
شوف ينفع هذا التعديل لنفس الكود الأخير في جز الحدث PrintDocument1_PrintPage
PHP كود :
Private Sub PrintDocument1_PrintPage(sender As ObjectAs Printing.PrintPageEventArgsHandles PrintDocument1.PrintPage

        Dim leftMargin 
As Integer e.MarginBounds.Left
        Dim topMargin 
As Integer e.MarginBounds.Top

        Dim cellFont 
As New Font("Arial"14)
        
Dim cellForeColor As New SolidBrush(Color.Black)
        
Dim cellBackColor As New SolidBrush(Color.WhiteSmoke)
        
Dim cellBorderColor As New Pen(Brushes.Blue1)
        
Dim cellSize As New Size(300100)

        
Dim y As Integer 0

        
For index 0 To products.Count 1

            Dim cellText 
As String =
                
"confirming QSO with " products.Keys(index) & vbNewLine _
                products
(products.Keys(index))

            
Dim txtSize As Size TextRenderer.MeasureText(cellTextcellFont)

            
Dim cellPoint As New Point(leftMargin + (0), topMargin + (y))
            
Dim cellRectangle As New Rectangle(cellPoint, New Size(cellSize.WidthtxtSize.Height))

            
e.Graphics.FillRectangle(cellBackColorcellRectangle)
            
e.Graphics.DrawString(cellText.TrimcellFontcellForeColorcellRectangle)
            
e.Graphics.DrawRectangle(cellBorderColorcellRectangle)

            
+= txtSize.Height

        Next

    End Sub 

لأن الطلب الأخير محتاج وقت
الرد }}}
تم الشكر بواسطة: dubai.eig , dubai.eig


الردود في هذا الموضوع
RE: يرجى المساعدة في تعديل كود الطباعة - بواسطة abdualla - 10-04-17, 10:22 AM


التنقل السريع :


يقوم بقرائة الموضوع: