How to print a ListView?

  • Thread starter Thread starter Cheney Lee
  • Start date Start date
C

Cheney Lee

Hi everyone,
this should be a quick question. I am use ListView control to bind
some date,now I need to print the infor in ListView.Howeve,there is not
some method call ListView.Print(), So anyway, if anyone knows of how
to deal with that, I'd love to hear about it.


Thanks!
Kiven Lee
 
Hi Lee,

Everyone wishes if life was that simple!
We dont have ListView.Print() option.

What you shoulod do is to extract the data from the ListView object and
feed the data into
System.Drawing.Printing.PrintDocument obect

Set the parameters to the PrintDocument object
Once that is done, we can fire a PrintDocument.Print() method.

Thanks,
Kamlesh.
 
Back
Top