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
1230
xamPivotGrid Print fills entire report section
posted

We have a problem printing the xamPivotGrid

When there's little or few data in the pivot, ie its a lot smaller than the report area, it always fills the entire space of the report (see attached, from Samples Browser)

We have even tried to template the report content, but it generates such a big image that the template is useless.

Please advise as the reports from the pivot looks really sille when it always fills the entire report

Screenshot from Samples Browser

Parents
No Data
Reply
  • 17475
    Offline posted

    Hello,

    The XamPivotGrid empty cells are displayed when the columns and rows header are expanded so in this scenario for each column and row an empty cell will be printed.

    Another thing to note in the Customizing Report Setting sample in the Samples Browser is the Horizontal Pagination Mode is set to Scale. This scales the XamPivotGrid to fit to the page by maintaining the aspect ratio (the scale factor for width and height is the same). You can use the Mosaic option if you prefer to keep the original size of the XamPivotGrid. In code the setting will look like this:
    report.ReportSettings.HorizontalPaginationMode = HorizontalPaginationMode.Mosaic;

    Please do not hesitate to let me know if you have any questions.

Children