views:

118

answers:

2

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.

A: 

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.

AnthonyWJones
A: 

Hi,

Why should we rotate it to 90 degree??? how come that will solve the problem??

I suspect you intended this as comment to may answer? It certainly isn't an answer itself. Please use the comment facility under an answer or question. Only post an Answer if you have an actual answer to the question. SO is quite different from other online forums I suggest you read the FAQ.
AnthonyWJones
@Anthony - you need 50 rep to be able to comment on posts (except for on your own question or answers to your own question).
ChrisF