开发者

Setting the preferences in SIlverlight PrintDocument

开发者 https://www.devze.com 2023-01-08 05:40 出处:网络
I\'m using PrintDocument in Silverlight. I\'m printing the Silverlight DataGrid in Silverlight page. When I\'m printing it only half of the DataGrid is getting printed....so Can I set the preferences

I'm using PrintDocument in Silverlight. I'm printing the Silverlight DataGrid in Silverlight page. When I'm printing it only half of the DataGrid is getting printed....so Can I set the preferences for PrintDocument anywhere. I would like to print it as a Landscape type.开发者_运维知识库 Thank you.


There isn't a means to indicate that the printer should print in a landscape mode.

However the PrintPageEventArgs has a PrintableArea property from which you can discover the current aspect of the page. Using this you could apply a RenderTransform (or you might need a LayoutTransform) to rotate your content 90 degrees.

0

精彩评论

暂无评论...
验证码 换一张
取 消