Hi,
I'm trying to print a XamDataGrid with its content using the code sample in xamDataGrid Reporting sample (xamFeatureBrowser), however i can't print the content of my XamDataGrid, only a screenshot of this grid.
Here is my code:
Report reportObj = new Report();
EmbeddedVisualReportSection section = new EmbeddedVisualReportSection(myXamDataGrid);
reportObj.Sections.Add(section);
reportObj.Print(fase);
Can someone explain me why this code can't print the content of my myXamDataGrid object?
Thanks
Aurélien
Hi Yanko,
Thank you for your help.
I found a way to print it by using the pagedown and printvisual methods, but I still would like to use the full reporting namespace (for exporting as well).
I am trying to see if it's possible for the company I work for currently to purchase a license.
Best Regards,
Sébastien De Prins
Hi SDePrins,
We do not currently offer an express version of NetAdvantage 2008.2 for WPF CTP. There will be an express version of NetAdvantage for WPF 2008 Volume 2; however, this will not include the Reporting namespace.If you are going to use the Printing, supported by the xamDataGrid, I would recommend purchasing the upcoming NetAdvantage for.NET or NetAdvantage for Windows Client product.Infragistics is scheduled to release both the above-cited products on November 3rd, 2008.
Best Regards,Yanko
Thank you for your time on this issue.
As you guessed, I use the xamDataGrid from the NetAdvantage for WPF 2008 volume 1 Express
Unfortunately, I'm not allowed to buy a custom control for this project, so I was looking for a free Datagrid control, and yours looks like the best choice for what I need to do.
I don't suppose there is an express version of the NetAdvantage 2008.2 for WPF CTP?
Thank you.
Sébastien.
After considering all the available details relating to your issue I could supposethat it may be resulted from the use of old xamDataGrid component (from the NetAdvantage forWPF 2008 volume 1 release or older one).You should realise the fact that the WPF Reporting component works properly only with the xamDataGrid from the NetAdvantage 2008.2 for WPF CTP or later.The reason is that the IEmbeddedVisualPaginator interface(used to support the main pagination functionalities) is included in Infragistics.Window.Reporting namespace, which is part of theInfragistics3.Wpf.v8.2 assembly. The Infragistics3.WPF.v8.1 assembly (or older one) doesn't includeInfragistics.Window.Reporting namespace, therby WPF Reporting component will not work properly.
Thank you for answering this fast.
1. The xamDataGrid is in a Grid which is in a TabItem (TabControl).
2 and 3 : I attached the 2 screenshots to this message. The values are not the same as in my previous message since I used another datagrid with less sensitive information for the screenshots, but the printing process is the same and the issue as well. I also converted the images to Greyscale to reduce the size of the images so they could be attached (200kb max).
4. I'm trying to print the content of the xamDataGrid.
I'm trying to achieve exactly the same result as in the Feature Browser demonstrating the reporting tool: print the whole content of the xamDataGrid (with the groups expanded) including the parts that aren't visible on the screen (but can be accessed with the scrollbar).