Hi
When i generate a preview for my datagrid the initial position is not on the top left. Somehow there's a margin?
Hello,
By default one page is displayed, centered in the preview. You can change the width of the page to fit in the viewer by adding the following to your code:
this.XamReportPreview1.GeneratePreview(report, false, false);
this.XamReportPreview1.ApplyTemplate();
this.XamReportPreview1.DocumentViewer.FitToWidth();
Valerie