Hallo, habe es jetzt mal so gemacht und er macht es ja auch, nur immer auf der selben seite, er fängt keine neue Seite an sondern überschreibt die ersten gedruckten Sätze.
Warum macht er keine mehreren Seiten auf.... Ich habe schon einen Haltepunkt gesetzt und alles schrittweise durchlaufen lassen. Das passt alles soweit.....Ich komm einfach nicht drauf warum er die seiten nicht wechselt bzw. neu erstellt.
For Each row As DataRow In dt.Rows
e.Graphics.DrawString(row("vorname"), New Font("Times New Roman", _
10, FontStyle.Regular), Brushes.Black, y_achse, x_achse, _
text_links)
e.Graphics.DrawString(row("nachname"), New Font("Times New Roman", _
10, FontStyle.Regular), Brushes.Black, y_achse + 100, x_achse, _
text_links)
e.Graphics.DrawString(row("strasse"), New Font("Times New Roman", _
10, FontStyle.Regular), Brushes.Black, y_achse + 230, x_achse, _
text_links)
e.Graphics.DrawString(row("plz"), New Font("Times New Roman", 10, _
FontStyle.Regular), Brushes.Black, y_achse + 410, x_achse, _
text_links)
e.Graphics.DrawString(row("wohnort"), New Font("Times New Roman", _
10, FontStyle.Regular), Brushes.Black, y_achse + 500, x_achse, _
text_links)
e.Graphics.DrawString(row("telefon"), New Font("Times New Roman", _
10, FontStyle.Regular), Brushes.Black, y_achse + 650, x_achse, _
text_links)
e.Graphics.DrawString(row("mobil"), New Font("Times New Roman", 10, _
FontStyle.Regular), Brushes.Black, y_achse + 750, x_achse, _
text_links)
e.Graphics.DrawString(row("email"), New Font("Times New Roman", 10, _
FontStyle.Regular), Brushes.Black, y_achse + 850, x_achse, _
text_links)
e.Graphics.DrawString(row("geburtstag"), New Font("Times New" & _
"Roman", 10, FontStyle.Regular), Brushes.Black, y_achse + 1000, _
x_achse, text_links)
x_achse = x_achse + 30
If x_achse >= 630 Then
e.HasMorePages = True
x_achse = 200
Else
e.HasMorePages = False
End If
Next |