1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
| Public Sub Détail_Print(Cancel As Integer, PrintCount As Integer)
Dim valleft As Long, valtop As Long
Dim lngCouleur As Long
nb_passage = nb_passage + 1
Debug.Print "Sur impression sous-état " & nb_passage
If h_nomnua < Me.NOMNUA.Height Then
h_nomnua = Me.NOMNUA.Height
End If
If h_norme < Me.NORME.Height Then
h_norme = Me.NORME.Height
End If
If h_etatth < Me.ETATTH.Height Then
h_etatth = Me.ETATTH.Height
End If
If h_section < Me.Controls("SECTION").Height Then
h_section = Me.Controls("SECTION").Height
End If
If h_valtol < Me.VALTOL.Height Then
h_valtol = Me.VALTOL.Height
End If
If h_quanti < Me.QUANTI.Height Then
h_quanti = Me.QUANTI.Height
End If
If h_prix < Me.PRIX.Height Then
h_prix = Me.PRIX.Height
End If
If h_delai < Me.DELAI.Height Then
h_delai = Me.DELAI.Height
End If
If h_modtrans < Me.MODTRANS.Height Then
h_modtrans = Me.MODTRANS.Height
End If
valleft = 3.6 * 567
valtop = 0
lngCouleur = RGB(0, 0, 0)
' on trace les cadres des champs
Me.Line (0, valtop)-(valleft, valtop + h_nomnua), lngCouleur, B
Me.Line (0, valtop + h_nomnua)-(valleft, valtop + h_nomnua + h_norme), lngCouleur, B
Me.Line (0, valtop + h_nomnua + h_norme)-(valleft, valtop + h_nomnua + h_norme + h_etatth), lngCouleur, B
Me.Line (0, valtop + h_nomnua + h_norme + h_etatth)-(valleft, valtop + h_nomnua + h_norme + h_etatth + h_section), lngCouleur, B
Me.Line (0, valtop + h_nomnua + h_norme + h_etatth + h_section)-(valleft, valtop + h_nomnua + h_norme + h_etatth + h_section + h_valtol), lngCouleur, B
Me.Line (0, valtop + h_nomnua + h_norme + h_etatth + h_section + h_valtol)-(valleft, valtop + h_nomnua + h_norme + h_etatth + h_section + h_valtol + h_quanti), lngCouleur, B
Me.Line (0, valtop + h_nomnua + h_norme + h_etatth + h_section + h_valtol + h_quanti)-(valleft, valtop + h_nomnua + h_norme + h_etatth + h_section + h_valtol + h_quanti + h_prix), lngCouleur, B
Me.Line (0, valtop + h_nomnua + h_norme + h_etatth + h_section + h_valtol + h_quanti + h_prix)-(valleft, valtop + h_nomnua + h_norme + h_etatth + h_section + h_valtol + h_quanti + h_prix + h_delai), lngCouleur, B
Me.Line (0, valtop + h_nomnua + h_norme + h_etatth + h_section + h_valtol + h_quanti + h_prix + h_delai)-(valleft, valtop + h_nomnua + h_norme + h_etatth + h_section + h_valtol + h_quanti + h_prix + h_delai + h_modtrans), lngCouleur, B
End Sub |
Partager