Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C#/WPF: Print a ListView

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

like image 536
Joseph jun. Melettukunnel Avatar asked Nov 15 '22 15:11

Joseph jun. Melettukunnel


1 Answers

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.

like image 107
penderi Avatar answered Dec 24 '22 10:12

penderi