views:

35

answers:

2

Hi,

I've put together several reports which render exactly as I'd like them to in the preview in Visual Studio, but when I view them in a web browser, they render as required initially but are quickly squished into the left half of the browser window by the viewer. The zoom level is set to 100% - setting it to Page Width zooms the report out to fill the page but it doesn't correct the line breaks it has made when the initial 'squish' happens.

Does anyone know how to prevent the viewer from doing this resize?

Also, does the ReportViewer automatically disable the maximize button on its parent browser window? I'm quite new to all this....

Thanks, Dan

A: 

After a lot more digging, I've found the solution to SSRS shrinking my reports. For reference, you have to do three things

  1. Delete the declaration from my hosting aspx page
  2. Set the ReportViewer's AsyncRendering property to false.
  3. Set the ReportViewer's Width property to 100%

Apparently there is a bug in SSRS 2005 with its XHTML rendering engine which is now fixed with the engine rebuild in SSRS 2008.

Hmobius
A: 

The way we do it in my company is to insert a Page header, drop a line component on it, make it the same width as the report, and of a neutral colour that won't be displayed on run time (printing).

The accepted solution above won't work in all the cases, especially when you set up a subscription to send the report by email to the client.

Dan S
I actually tried that prior to finding the solution below and it still continued to shrink the report.
Hmobius