I am attempting to print out payment coupons based on the length of a loan, ie 12months = 12 coupons.
Y = the y coordinate of the text string. Y is incremented by 100 each loop to cause the next coupon to print just below the previous. If the value of y reaches 1000, then the I need to start another page.
My Problem is it will only print one page (10 coupons). This is my first attempt at printing in DotNet and Im just a little confused as to the proper syntax.
If I leave out the "Else e.hasmorepages = false" it spools endlessly.
Print Coupon
For N = 1 To g_intLength
g.DrawString(strCoupons, Font, Brushes.Black, 10, y)
y = y + 100
If y >= 1000 Then
y = 10
e.HasMorePages = True
Else
e.HasMorePages = False
End If
Next N
Y = the y coordinate of the text string. Y is incremented by 100 each loop to cause the next coupon to print just below the previous. If the value of y reaches 1000, then the I need to start another page.
My Problem is it will only print one page (10 coupons). This is my first attempt at printing in DotNet and Im just a little confused as to the proper syntax.
If I leave out the "Else e.hasmorepages = false" it spools endlessly.
Print Coupon
For N = 1 To g_intLength
g.DrawString(strCoupons, Font, Brushes.Black, 10, y)
y = y + 100
If y >= 1000 Then
y = 10
e.HasMorePages = True
Else
e.HasMorePages = False
End If
Next N