description + download:
http://code.msdn.microsoft.com/ListV...inter-7a9be0a7
Printable View
description + download:
http://code.msdn.microsoft.com/ListV...inter-7a9be0a7
I made some adjustments to the class in an attempt to solve some alignment problems. The amended class can be found here.
A few more tweaks and twiddles here.
Thanks for this paul,:thumb: , I've never done any printing in .Net and honestly didn't know where to start.:o
Added the class to a couple projects for testing and seems to works well except when I have LV set to autosize columns it isn't printing everything, seems to cut off last 2-3 chars in a column.
Oh and how about an option to add a title centered at the top of the page? :D
dunfiddlins tweaks address the issues you mention.
unfortunately, no icon printing at the moment
this is the simplest fix for the columnwidths when autosized.
in form_load:
Code:ListView1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent)
For x As Integer = 0 To ListView1.Columns.Count - 1
ListView1.Columns(x).Width += 12 'try different widths here
Next
@EdgeMeal...
i updated the zipFiles (included title):
http://code.msdn.microsoft.com/ListV...inter-7a9be0a7
Seems I inadvertently created a bug in my last tweaks. It's solved here.