A learner in ASP.Net technologies, and maybe that is the reason I am facing this problem. I searched and tried different things but none of them is working.
which is giving me a good report, but without the page layout. (I need to create a master file, as I will be using this same layout in all different webpages.
Can anyone tell me what I am missing??? Trying several options for quite some days now without any positive result.
It's the width and height issue. What I want is that, since I am calling the Reportviewer within the <asp:Content></asp:Content>, I want the reportviewer to come within the content. But it is not.
adattagupta
Member
4 Points
3 Posts
RDLC problem with site.master files
Feb 27, 2012 09:50 PM|LINK
A learner in ASP.Net technologies, and maybe that is the reason I am facing this problem. I searched and tried different things but none of them is working.
Here are the two .aspx codes that I am using.
Version 1
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" Title="Test Page" CodeFile="testPage.aspx.cs" Inherits="testPage" EnableEventValidation="false" AutoEventWireup="true" MaintainScrollPositionOnPostback="true"%>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SEPright" Runat="Server">
<div id="div1" runat="server">
<asp:ScriptManager ID="SM" runat="server"></asp:ScriptManager>
<rsweb:ReportViewer ID="rptAggPat" runat="server" Width="100%" AsyncRendering="false" SizeToReportContent="true"></rsweb:ReportViewer>
</div>
</asp:Content>
which is giving me a page with distorted report
Version 2
<%@ Page Language="C#" CodeFile="testPage.aspx.cs" Inherits="testPage" EnableEventValidation="false" AutoEventWireup="true" MaintainScrollPositionOnPostback="true"%>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<html>
<head>
<title>Test Page</title>
</head>
<body>
<form id="form1" runat="server">
<div id="div2" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="100%" AsyncRendering="false" SizeToReportContent="true"></rsweb:ReportViewer>
</div>
</form>
</body>
</html>
which is giving me a good report, but without the page layout. (I need to create a master file, as I will be using this same layout in all different webpages.
Can anyone tell me what I am missing??? Trying several options for quite some days now without any positive result.
skcookie
Member
534 Points
138 Posts
Re: RDLC problem with site.master files
Feb 27, 2012 11:19 PM|LINK
width 100% on the report view control has been known to cause issue, try setting this to an exact size.
Patrick P.
Microsoft Certified Professional
Remember to mark as answer where appropriate!
adattagupta
Member
4 Points
3 Posts
Re: RDLC problem with site.master files
Feb 28, 2012 03:37 PM|LINK
Nopes, I tried that as well. That is also not working.
skcookie
Member
534 Points
138 Posts
Re: RDLC problem with site.master files
Mar 01, 2012 04:32 AM|LINK
when you say distorted can you give detail description? Are you talking just width and height issues or are you talking about report rendering issues.
Patrick P.
Microsoft Certified Professional
Remember to mark as answer where appropriate!
adattagupta
Member
4 Points
3 Posts
Re: RDLC problem with site.master files
Mar 01, 2012 02:07 PM|LINK
It's the width and height issue. What I want is that, since I am calling the Reportviewer within the <asp:Content></asp:Content>, I want the reportviewer to come within the content. But it is not.