Hi,
i have a print preview button where when user clicks, the preview doc will appear. everything else is working fine, just that it cant seem to be able to continue on a next page when the records exceed the 1st page.
i've tried the following code but it just keeps generating the previews, until i press cancel. And the generated previews are the same as the first page.
are there any other ways of making it work?
thanks in advance.
i have a print preview button where when user clicks, the preview doc will appear. everything else is working fine, just that it cant seem to be able to continue on a next page when the records exceed the 1st page.
i've tried the following code but it just keeps generating the previews, until i press cancel. And the generated previews are the same as the first page.
VB.NET:
If ypos > e.MarginBounds.Bottom Then
If dr5.HasRows Then
intpagenumber += 1
e.HasMorePages = True
Else
e.HasMorePages = False
End If
Exit Sub
End If
are there any other ways of making it work?
thanks in advance.