Printing in Silverlight 4 datagrid

I have a Silverlight 4 app with RIA services. It is based on Tim Heuer video , and I have about the same setup.

I have a DomainDataSourcecollection DomainDataSource.FilterDescriptors, Datagrid, which displays 15 elements per page using a DataPager. When the user enters his filtering parameters, the datagrid is updated accordingly, but there are still a few pages that are suitable for viewing on the screen. I want to implement a print function that essentially prints a datagrid, but all elements at once on multiple pages, if necessary.

I communicated with the basics of printing, and I can print the datagrid since it accurately displays on the screen, but I want to be able to print all the elements.

I do not find good examples on the Internet. Can anyone suggest an approach to solving this issue?

thank

Edit: Not sure how useful this is, but here is the XAML scheme.

enter image description here

+3
source share
1 answer

Thus, one of the problems will be that when the user says that he wants to print, you probably want all the data on the client (by executing some larger request), but suppose you take care about that and having all the customer data and just want to focus on printing now.

David Poll ( : http://www.davidpoll.com/2010/04/16/making-printing-easier-in-silverlight-4/). ( ), ItemsControl ( , ItemsControl ) .

, UserControl, " " , DataGrid, 15 , " " ( CSS, ). , , .

+2

Source: https://habr.com/ru/post/1788501/


All Articles