none
ReportViewer not respecting margins

    Question

  • Using VS 2008, I've designed a local report for display in WinForms.ReportViewer.  My report's page size in 8.5" x 11.0", my body size is 7.5" x 10.0", and my margins are 0.5" all the way around.  When I print/export my report everything looks great.  Also, when I view my report in Print Layout mode in ReportViewer it also looks fine.  But, when I view my report in standard mode in ReportViewer, I end up with an inch of whitespace along the right side of it.  This is obviously because of the difference between the page size and the body/content size.  I've tried increasing my body size to match the page size, but then the margins cause me to be two pages wide.  What is the best way to resolve this, so that my report will occupy the full space in the viewer?

     

    Thanks,

     

    mike

    Monday, April 21, 2008 4:55 PM