Print,PrintPreview and Export the WPF Grid.

Mar 4, 2011 at 9:10 AM

Hi ,

 

I have a WPF UserControl which inherits WPFToolkit DataGrid , which displays data Dynamically.

I need to perform the below :

1. When i click on Print button, i must be able to print the contents of WPF usercontrol.

2. When i click on Print-Preview button, i must be able to Preview the WPF  usercontrol content.

3. When i click on Export button , i must be able to export the contents of usercontrol to RTF(Rich Text File).

Please some one help me out in accomplishing the above. If any sample code on these will be very helpfull.

 

Thanks in advance,

Chetan.