|
查看: 1246|回复: 0
|
vb.net 请帮帮忙 !!!
[复制链接]
|
|
|
vb.net 问题是 printing set 不到去第二面, 以下是我的 code :
Dim lvwItem As ListViewItem
Dim lvwSubItem As ListViewItem.ListViewSubItem
Dim offsettingCount As Integer = 0
Dim x As Integer = 20
Dim y As Integer = e.MarginBounds.Top
' Loop through our listview items
For Each lvwItem In ListView1.Items
' Print the subitems of this particular ListViewItem
For Each lvwSubItem In lvwItem.SubItems
e.Graphics.DrawString(lvwSubItem.Text, PrintFont, Brushes.Black, x, y)
x = x + 80
Next
y = y + 20
If y > e.MarginBounds.Bottom + 20 Then
e.HasMorePages = true
Exit Sub
End If
x = 20
Next
我的意识是当我要 print listview 时, listview 有很长的资料 ,要继续去别的第二面 ,我只是做到第一面,第二面 set 不到。
一只 print 上百张是同一面的 。
各位大哥大姐请帮帮忙小弟 !!!
|
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|