SSRS 2005 ReportViewer Report - Abbreviation of My Reports

I have compiled several reports that are displayed as I would like in a preview in Visual Studio, but when I view them in a web browser, they are rendered as needed, but quickly compressed into the left half of the browser window. The scaling level is set to 100% - setting it to the Width page increases the scale of the report to fill the page, but does not correct line breaks that were made during the initial "squish".

Does anyone know how to prevent a user from viewing this size?

Also, does it automatically disable the ReportViewer button in its parent browser window? I am completely new to all this ....

Thanks Dan

+4
source share
4 answers

After digging many times, I found a solution for SSRS to shorten my reports. For reference, you need to do three things

  • Remove ad from my aspx hosting page
  • Set the ReportViewer AsyncRendering property to false.
  • Set the ReportViewer Width property to 100%

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

-1
source

The problem of report reduction in CHROME when using SSRS 2005 can be solved with the help of the following solution. It ALWAYS works, even if you have more than one page, and if you export the report.

Stages:

  • Page Footer
  • Drag a rectangle on it
  • Set Rectangle Location as:
    • Left = 0
    • Top = 0
  • Set the size of the rectangle as:
    • Width = "Width of your report"
    • Height = 0.1

In the above settings, the rectangle will not be displayed.

+6
source

The way we do this in my company is to insert the page title, remove the linear component on it, make it the same width as the report, and a neutral color that will not be displayed at run time (printing).

The decision made above will not work in all cases, especially if you have configured a subscription to send the report by e-mail to the client.

+1
source

Our fix was to increase Height and Width by Javascript:

 var t1; function manageWidthReportViewer(behID) { t1 = window.setInterval("SetWidthForCrome()", 1); } function SetWidthForCrome() { var mainReportViewer = document.getElementById('iFrameMainReportViewerContainer'); var reportFrame = mainReportViewer.contentWindow.document.getElementById('ReportFramereportViewer'); var report = reportFrame.contentWindow.document.getElementById("report"); if(mainReportViewer.contentDocument.getElementById("reportViewer") != null) mainReportViewer.contentDocument.getElementById("reportViewer").childNodes[2].childNodes[1].childNodes[1].style.float = "left"; if (report!=null && report.contentDocument.getElementById("oReportCell") != null) { report.contentDocument.getElementById("oReportCell").style.width="100%"; window.clearInterval(t1); } } function SetReportViewerDim() { var controlPanelHeight = screen.availHeight - 210; var mainReportViewer = document.getElementById('iFrameMainReportViewerContainer'); //set mainReportViewer.removeAttribute('height'); mainReportViewer.style.height = (controlPanelHeight-37) + "px"; var reportViewer = mainReportViewer.contentWindow.document.getElementById('reportViewer'); //set reportViewer.style.height = (controlPanelHeight) + "px"; var reportFrame = mainReportViewer.contentWindow.document.getElementById('ReportFramereportViewer'); if (Sys.Browser.name == "Safari") { manageWidthReportViewer(reportFrame); } } 
0
source

All Articles