Hi,

I want to print the value of N in Multi pages printing.
Example:
First page from 1 to 10
Second page from 11 to 20
And so on until 100, it will be 10 pages.
I tried with "e.HasMorePages = True", but without success.

Thanks in advance

My code:
Code:
    Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
        Dim drawFont As New Font("Microsoft Sans Serif", 8, FontStyle.Regular)
        Dim drawBrush As New SolidBrush(Color.Black)
        '
        Dim x As Single = e.MarginBounds.Left
        Dim y As Single = e.PageBounds.Top
        '
        For N As Integer = 1 To 100
            e.Graphics.DrawString(N, drawFont, drawBrush, x + 5, y + 16)
            y += 16
        Next
    End Sub