Last post Jun 18, 2013 12:27 PM by CaveThug
Nov 15, 2010 02:38 PM|bc1016|LINK
Hi, I'm using VS2008 and SSRS 2008 R2 and server-side report, we run into an issue with the native Report Viewer seems to always display the report in portrait, but when printing it prints in the correct orientation of the report as it's designed. The problem
is that in the report viewer it shows a different number of pages than when it prints. For example if the report is designed in landscape, the report viewer will say the report has 4 pages (because it displays in portrait), but when printed the report is actually
9 pages (because it's landscape). Is there a way to set the report viewer to display the report in the orientation of the report as it's designed?
Nov 15, 2010 04:22 PM|karanmonga8|LINK
Report Viewer Properties and Set the Orientiation
Nov 16, 2010 05:32 AM|bbalavikram|LINK
open the report file in the Visual studio.
go to Report in tool bar
click on report options
goto Layout tab.
here is the report size that you can set. Change the Page Width and Page Height to whatever you want to!!!!
Nov 16, 2010 03:49 PM|bc1016|LINK
Sorry maybe I was unclear, I need to have the ReportViewer show the report in the report's orientation (in run time, dynamically). We have a number of reports, and each report is designed to be either landscape or portrait, but when viewing in the ReportViewer
it seems to always display the reports in portrait, even for the landscape reports. Whena landscape report is displayed in the ReportViewer, each page of the report has a lot more data than when the report is printed, therefore the total # of pages shown
in the ReportViewer toolbar is incorrect for the landscape reports compared to when the report is printed.
Nov 18, 2010 06:12 PM|bc1016|LINK
Hummmm, no one has run into the same issue? I searched the web up and down and I can't find a solution. My reports printed fine in the orientation as designed, but when viewing using the ReportViewer that's when it seems to always show the report in portrait,
even for landscape reports. Is this a VS2008 and SSRS 2008 issue?
Nov 19, 2010 03:54 AM|akabook|LINK
I have same issue with local report. So it seem to be VS2008 issue.
Don't know the fix either.
Nov 19, 2010 12:32 PM|bc1016|LINK
Thank you, I just thought there maybe more people having the same issue, does anyone know if VS2010 (ReportViewer 2010) fixes the issue?
I'm posting my entire report viewer's web page here and as you can see it's very simple:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyReportViewer.aspx.cs" Inherits="MyReportViewer" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<form id="frmReportViewer" runat="server">
<div style="overflow:visible; margin-top:10px; background-color:#FFFFFF; width:1000px;">
<rsweb:ReportViewer ID="rvReport" runat="server" ProcessingMode="Remote" ShowExportControls="false" AsyncRendering="false" SizeToReportContent="true" ZoomMode="FullPage" Height="100%" Width="100%">
<ServerReport ReportPath="" ReportServerUrl="" />
Jun 18, 2013 12:27 PM|CaveThug|LINK
I know this is an old post, but wanted to add a possible solution to this problem...
Make sure Quirks Mode is enabled in IE. My reports would load as landscape but as soon as it finished loading, would shrink down to a portrait width. Had IE in Standards Mode, switched over to Quirks, and it works.