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.
Anybody ?? please help I didn't resolved this issue yet.
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/
Hello torbaman,
I can suggest you look through this link from our online documentation:
http://help.infragistics.com/NetAdvantage/reporting/2011.2/CLR4.0?page=Getting%20Started.html
where it is explained how to use our NetAdvantage Reporting control.
If you have any other question related to our products, feel free to ask.
Hi
I am using "PrintDocument" class because I have to develop a bit more complicated reports which include a fixed place on a report for one type of information like is title and date of the report and name of the customer and his contact information but also other type of information, which goes below, like is a list of orders that customer made trough some period of time. So as you can see while some information that needs to be on a report is fixed (with position and number of occurrence) other (list of orders) is changeable and can go from 1 to 5 or 10 pages because it's a list - so I need multi page enabled printing. If I can achieve this with just using "Infragistics.Reports" I would be very glad to do so but I don't know how, I need an sample project.
So far I have found this solution for multi page print: http://www.silverlightshow.net/items/Advanced-printing-in-Silverlight-4.aspx
Try it out it's pretty good. In my case of needs this would be a solution for that list that most of the time would require multi page printing. I am now trying to implement those fixed positions for title and customer name etc. into this example project that you will find on this link above.
Awaiting your response,
best regards,
Marko