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?
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.
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?
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.
Member
20 Points
75 Posts
ReportViewer displays report in portrait by default
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?
Thank you.
ReportViewer Reporing service
None
0 Points
8 Posts
Re: ReportViewer displays report in portrait by default
Nov 15, 2010 04:22 PM|karanmonga8|LINK
Report Viewer Properties and Set the Orientiation
Member
657 Points
277 Posts
Re: ReportViewer displays report in portrait by default
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!!!!
Member
20 Points
75 Posts
Re: ReportViewer displays report in portrait by default
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.
Member
20 Points
75 Posts
Re: ReportViewer displays report in portrait by default
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?
None
0 Points
1 Post
Re: ReportViewer displays report in portrait by default
Nov 19, 2010 03:54 AM|akabook|LINK
Hi there
I have same issue with local report. So it seem to be VS2008 issue.
Don't know the fix either.
Member
20 Points
75 Posts
Re: ReportViewer displays report in portrait by default
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" >
<head runat="server">
<title>Report Viewer</title>
</head>
<body>
<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="" />
</rsweb:ReportViewer>
</div>
</form>
</body>
</html>
None
0 Points
1 Post
Re: ReportViewer displays report in portrait by default
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.
ReportViewer reportingservices Reporing service