I have managed to print a page, here is what I did:I added "Silverlight.Reporting.dll" reference to my project and I added UserControl page which I fill with needed data and I print with this code: PrintDocument document = new PrintDocument(); document.PrintPage += (s, args) => { args.PageVisual = LayoutRoot; args.HasMorePages = false; HideAllOuterControls(); }; document.EndPrint += (s, args) => { ShowAllOuterControls(); }; document.Print("Ticket Report");This prints page just fine. I have one issue so far dough and that is it prints until the certain height of the page. Namely if I have on my page (height 800px) a border control from top to bottom (height 780px) I press PRINT and on the paper I can only see top 600px of the rectangle (roughly 600) - I can't see the bottom line at all?? I wonder why is this?? Cause THERE IS a plenty of space below to fit the hole rectangle.Is there something I am missing? Some additional settings maybe, please help.P.S. I am planing to put my printing to child window later...Best regardsMarko.
Hello Marko,
I have been looking into your post and the ‘PrintDocument’ class is not a part of our Infragistics.Reports. I do not know why you have used it but I can suggest you looking through the following MSDN link where it is discussed how you can print multiple pages in a PrintDocument :
http://social.msdn.microsoft.com/forums/en-US/winformsdatacontrols/thread/ba02e09f-ae5c-4dc3-a832-4c46af2a11cb/
Anybody ?? please help I didn't resolved this issue yet.