佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1246|回复: 0

vb.net 请帮帮忙 !!!

[复制链接]
发表于 26-5-2010 09:52 PM | 显示全部楼层 |阅读模式
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 上百张是同一面的 。  


各位大哥大姐请帮帮忙小弟 !!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 23-11-2025 12:02 AM , Processed in 0.125446 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表