Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
PrintPreview - alignment of summary columns in nested group by rows shifted
posted

Hi,

For some reason, summary columns in nested group by rows are not aligned properly when the grid is displayed in a PrintPreview window or printed out - i.e. the columns are all shifted to the right (relative to the rows indentation). At the same time the alignment is correct in the grid itself.

The following code creates the PrintPreview of the grid in question - and snapshots to illustrate the problem.

Do you know how I can force the nested group by rows to keep the correct alignment for the summary columns? Is there some property that I am missing that would enforce the alignment? Or do I need to remove the row indentations to prevent the columns to be shifted?

Thanks for your help, Anita

-----------

Report report = new Report();

//where grid is an intance of XamDataGrid
EmbeddedVisualReportSection section = new EmbeddedVisualReportSection( grid );  
report.Sections.Add( section );

report.PageHeaderTemplate = Resources[ "PagePresenterHeaderTemplate" ] as DataTemplate;
report.PageFooterTemplate = Resources[ "PagePresenterFooterTemplate" ] as DataTemplate;

report.PageHeader = title;
report.ReportSettings.HorizontalPaginationMode = HorizontalPaginationMode.Scale;

//where viewer is an instance of XamReportPreview
viewer.GeneratePreview( report, false, true );

----------------

As displayed in PrintPreview - nested summary columns shifted to right by identation:

As displayed correctly in the grid itself: