Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

Please help with printing.

$
0
0
I am trying to print multiple pages using a listview.

CODE:

Dim ItemCounter As Integer

For ItemCounter = 0 To lvwLearners.Items.Count - 1
PrintLearnerList(e) ' this is what I want to print
Next


If ItemCounter < lvwLearners.Items.Count Then
e.HasMorePages = True

Else
ItemCounter = 0
e.HasMorePages = False
End If

When I try to print it just shows the first page and there is enough data in the list view to have multiple pages.

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>