Search code examples
c#winformsreportingreport-viewer2010

Dock or Anchor properties for microsoft reporting in winforms?


When working with ReportViewer in Winforms and Microsoft reports is possible to have a way to dynamically resize the report in the screen like anchors and dock property in "common" controls?

I can turn on docking for ReportViewer, but the contents does not resize, only the control.


Solution

  • You can use the following to resize the report to fit on the page.

    This will allow you to see all the content.

    ReportViewer1.SizeToReportContent = true;
    ReportViewer1.ZoomMode = ZoomMode.FullPage;