Silverlight4 Printing Question

Posted by hallgato.attila on Stack Overflow See other posts from Stack Overflow or by hallgato.attila
Published on 2010-05-28T09:25:11Z Indexed on 2010/05/28 9:32 UTC
Read the original article Hit count: 307

Filed under:
|
|

Hello everyone!

I'm having a problem with printing. Is it possible to print a (customized) DataGrid which doesn't fit the page?

a) Using a ViewBox to make it fit one page. My problem here is that I can get the PrintableArea.Width and PrintableArea.Height in the PrintPage EventHandler, from the PrintPageEventArgs, but in that Event Handler I can't set the size of an UIElement before it gets printed.

b) Multiple pages. Is it possible somehow to print the whole DataGrid, even the parts which are not visible (don't fit the page) and to somehow make the PrintableArea only a part of the DataGrid?

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about datagrid