Hi,
How to show the printpreview of a XamDatagrid in a dialog? I do not want it in a tab or some control directly in the window. I do not find any ShowDialog() like options in the XamReportPreview.
Thanks,
Poornima
Hello gspurnima,
I am checking if this is still an issue for you.
If you require any further assistance please do not hesitate to ask.
I have been looking into your issue and I could not manage to reproduce it. I have tried to print empty XamDataGrid and another one that has only columns with no data in them and it seems no exception appears. I am attaching two screenshots(print1.png, print2.png) that illustrates my two scenarios.
If I have misunderstood you or you need any further assistance, feel free to ask.
Hi Yanko,
Thanks for the sample.
When I try to Print/PrintPreview an empty xamdatagrid, I get an Object reference exception. Is it not allowed to print that?
Regards,
I am just checking if my last reply was helpful for you.
I have been looking into your post and I can suggest adding a button to the window with the XamDataGrid which click will invoke another window where the print preview will appear. I am attaching a sample application(Printing.zip) that demonstrates this functionality.
If I have misunderstood you in any way or you have any other questions, feel free to ask.