By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,335 Members | 2,718 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,335 IT Pros & Developers. It's quick & easy.

Printing again

P: 115
i currently have some information in a list view and i have the majority of it printing. My problem is i want my icon to print alongside the row (either a tick or a cross) to say if something is confirmed or not. Also i have troubles getting the headings of the columns to print. This is what i have
Dim g As Graphics = e.Graphics
Dim font As New Font("arial", 12, FontStyle.Bold)
Dim currenty As Integer = e.MarginBounds.Top
For q As Integer = 0 To lv1.Columns.Count
'something here to make the column headings print but i don't know what

For i As Integer = 0 To lv1.Items.Count - 1
Dim item As ListViewItem = lv1.Items(i)
g.DrawString(item.SubItems(0).Text & " " & item.SubItems(1).Text & " " & item.SubItems(2).Text & " " & item.SubItems(3).Text, font, Brushes.Black, e.MarginBounds.Left, currenty)
currenty += font.GetHeight()
Cheers in advanced

Jul 10 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.