Hi, we have a XamDataGrid that has complex styles, I use EmbeddedVisualReportSection to generate report from the XamDataGrid. Some cells were cut of in the report, sometime the issue disappears when changing grid size on screen and generate report again. There are also some rows with different styles didn't display properly.
I used code below to generate print preview. Could you please provide insights on what might be wrong, and how to fix it?
public partial class WindowPrinting : Window { Report report1 = new Report(); public WindowPrinting(XamDataGrid grid) { InitializeComponent(); grid.AutoFit = true; EmbeddedVisualReportSection selection = new EmbeddedVisualReportSection(grid); report1.Sections.Add(selection); report1.PageHeader = "Page Header"; report1.PageFooter = "Page Footer"; report1.ReportSettings.PageOrientation = PageOrientation.Landscape; xamReportPreview1.GeneratePreview(report1, false, true); } }
Thanks,
Crystal.
Hello Jing,
Thank you for your post.
I have been looking into it. I created a sample application based on your scenario and I could not managed to reproduce the behavior that you have described. If you are not able to reproduce the issue with the attached sample application, would you please modify it with the functionality, that you are using, so it reproduces the issue. This way I would be able to further investigate this for you and provide you with more detailed information on this matter.
Looking forward to hearing from you.
I am just checking your progress on the issue that you are having.
If you require any further assistance please do not hesitate to ask