views:

1065

answers:

3

Does anyone have an idea how to Print (A4) the Content of a ListView (e.g. with all the ColumnHeaders, fit to the Page-Width and without the Scrollbar)? I've found several old threads about this on stackoverflow, but no complete answer.

Thank you.

Cheers

A: 

This is how you do it in windows forms and it's in VB.net, I hope it'll be helpful.

http://www.vb-helper.com/howto%5Flistview%5Fprint.html

Peymankh
+1  A: 

Hi, Someone asked on msdn and it looks like you need to create a Fixed Document, loop over the ListView datasouce and build the table cells and rows in the created document.

ip