Good afternoon everyone,
Currently I am experiencing a problem with a flowdocument that I am trying to print. All the code is doing exactly what it is suppoed to do, but when I press the print button in my program, the page that comes out of the printer almost seems to be wordwrapped.
All in all the printed page seems to go no further than ~50 characters.
public void PrintIt()
{
PrintDialog PD = new PrintDialog();
FlowDocument FDForPrinting = FD;
FDForPrinting.PagePadding = new Thickness(50.0);
IDocumentPaginatorSource DocPager = FDForPrinting;
DocPager.DocumentPaginator.PageSize = new Size(PD.PrintableAreaWidth, PD.PrintableAreaHeight);
PD.PrintDocument(DocPager.DocumentPaginator, "AutoChecklist Report");
}
The PagePadding seems to make quite a difference, but that doesn't seem like the correct way.
Does anybody have a clue what might be causing this?
(P.S. the PageSize doesn't seem to make a difference, but I say it almost all of the similar pieces of code, so I tried that too)