I have a header section and a footer section on my WPF and the ListView is the body. I wish to print the header, the entire content of the ListView (including all its items) without scrollbars, and the footer.
Please note I am not asking for a spoon feeding answer. I am asking for guidance into the right direction.
This is my code I got so far. However this does not work perfectly. When the scrollbars of the ListView appears then some of the items does not print.
PrintDialog printDialog = new PrintDialog();
if (printDialog.ShowDialog() == true)
{
printDialog.PrintVisual(gridContent, "Invoice");
}