If i = 5 Then e.Graphics.DrawString(Format(oCell.Value, "dd/MM/yyyy"), oCell.InheritedStyle.Font, New SolidBrush(oCell.InheritedStyle.ForeColor), New RectangleF(oColumnLefts(i), nTop, oColumnWidths(i), nHeight), oStringFormat) Else e.Graphics.DrawString(oCell.Value.ToString, oCell.InheritedStyle.Font, New SolidBrush(oCell.InheritedStyle.ForeColor), New RectangleF(oColumnLefts(i), nTop, oColumnWidths(i), nHeight), oStringFormat)
18-01-24, 01:55 PM (آخر تعديل لهذه المشاركة : 18-01-24, 02:36 PM {2} بواسطة مبرمج صغير 1.)
(18-01-24, 12:48 PM)تركي الحلواني كتب :
عدل هذا في Module DataGridViewPrinter للطباعة
PHP كود :
If i = 5 Then e.Graphics.DrawString(Format(oCell.Value, "dd/MM/yyyy"), oCell.InheritedStyle.Font, New SolidBrush(oCell.InheritedStyle.ForeColor), New RectangleF(oColumnLefts(i), nTop, oColumnWidths(i), nHeight), oStringFormat) Else e.Graphics.DrawString(oCell.Value.ToString, oCell.InheritedStyle.Font, New SolidBrush(oCell.InheritedStyle.ForeColor), New RectangleF(oColumnLefts(i), nTop, oColumnWidths(i), nHeight), oStringFormat)
End If
الف شكر استاذنا القدير ولكل من حل مشكلتي وارسل الحل وحاول الحل شكرا
24-01-24, 10:12 PM (آخر تعديل لهذه المشاركة : 24-01-24, 10:34 PM {2} بواسطة annagui.)
(18-01-24, 01:55 PM)مبرمج صغير 1 كتب :
(18-01-24, 12:48 PM)تركي الحلواني كتب :
عدل هذا في Module DataGridViewPrinter للطباعة
PHP كود :
If i = 5 Then e.Graphics.DrawString(Format(oCell.Value, "dd/MM/yyyy"), oCell.InheritedStyle.Font, New SolidBrush(oCell.InheritedStyle.ForeColor), New RectangleF(oColumnLefts(i), nTop, oColumnWidths(i), nHeight), oStringFormat) Else e.Graphics.DrawString(oCell.Value.ToString, oCell.InheritedStyle.Font, New SolidBrush(oCell.InheritedStyle.ForeColor), New RectangleF(oColumnLefts(i), nTop, oColumnWidths(i), nHeight), oStringFormat)
End If
الف شكر استاذنا القدير ولكل من حل مشكلتي وارسل الحل وحاول الحل شكرا
السلام عليكم لحل هذه المشكل جرب هذا الكود عند امر تحديث البانات او ادخال البيانات وراح تتحل مشكلتك