1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| Dim tmp As String
Dim tmp2 As String
Dim maChaine As String
Dim retourChariot As String
Dim i As Integer
Dim j As Integer
Dim cpt2 As Integer
Dim MonTableau() As String
Dim monTab_temp() As String
ReDim Preserve MonTableau(1 To (Len(uneChaine) / 255) + 1)
retourChariot = Chr(13) & Chr(10) 'retour a la ligne
maChaine = ""
tmp2 = Replace(uneChaine, vbCrLf, retourChariot)
cpt2 = 1
For i = 1 To Len(uneChaine) Step n
monTab_temp = Split(Mid(tmp2, i, n), retourChariot)
For j = 1 To UBound(Split(tmp, retourChariot))
RpReport.Areas(3).Sections(1).AddTextObject monTab_temp(j), 10, (200 * cpt2)
cpt2 = cpt2 + 1
Next
Next |
Partager