اسف على التاخير
ولكن كنت اقوم بالتعديل على التقرير رقم 1
اطريقه هي
اولا لابد من تقليل ارتفاع الحقول الموجوده في التفاصيل
لاحظت ان حجم الحقول سميك جدا
ثانيا لابد من وضع خاصيه can grow لكل حقل في التقرير الى نعم >>> من خصائص الحقل >>> اذهب ل تاب التنسيق او format >>
ثالثا ضع الكود ادناه في حدث on print ل قسم ال Details او التفاصيل
وقم باضافه اسماء الحقول في متسلسله كما في الكود و لا تنسى ان العدد يبداء من صفر و مجموع عدد الحقول هو 13 وليس 12
Private Sub Details_Print(Cancel As Integer, PrintCount As Integer)
On Error Resume Next
Dim lngCounter As Long, dblMaxHeight As Double
dblMaxHeight = 0
ReDim strcontrol(13)
strcontrol(0) = "ID"
strcontrol(1) = "program_name"
strcontrol(2) = "Combo3"
strcontrol(3) = "instructor_id"
strcontrol(4) = "txtds"
strcontrol(5) = "txtstart"
strcontrol(6) = "txtend"
strcontrol(7) = "txtde"
strcontrol(8) = "txtdays"
strcontrol(9) = "txtintendedto"
strcontrol(10) = "txtlocation"
strcontrol(11) = "txtRemarksInt"
strcontrol(12) = "txtRemarks"
For lngCounter = 0 To UBound(strcontrol)
If Me(strcontrol(lngCounter)).Height > dblMaxHeight Then dblMaxHeight = Me(strcontrol(lngCounter)).Height
Next
For lngCounter = 0 To UBound(strcontrol)
If lngCounter = 0 Then
Me.Line (Me(strcontrol(lngCounter)).Left, Me(strcontrol(lngCounter)).Top)-Step(Me(strcontrol(lngCounter)).Width, dblMaxHeight), , B
Else
Me.Line (Me(strcontrol(lngCounter)).Left, Me(strcontrol(lngCounter)).Top)-Step(Me(strcontrol(lngCounter)).Width, dblMaxHeight), , B
End If
Next
طبعا يفضل تسميه الحقول باللغه الانجليزيه
شاهد التعديل على المرفق >>> التقرير Report1
هناك ملاحظه: لا يفضل هذا النوع من التقارير التي تطبع جميع البيانات ، مع مرور الوقت سوف يكون هناك بيانات ليس لها من داعي لطباعتها
فايفضل عرض التقرير باستخدام فلتر للتاريخ (من - الى)
واذا كان هناك شرح غير واضح اارجاء ابلاغي
printline.rar