Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am working with a customized page that has an embedded ReportViewerWebPart inside of a content tag. In this case, it's inside of "PlaceHolderMain".

It looks like this:

<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
<asp:Panel ID="Panel1" runat="server" Width="100%" Height="100%" >  
    <RSWP:ReportViewerWebPart id="m_sqlRsWebPart" runat="server" ChromeType="None" AsyncRendering="false" Height="100%" Width="100%" HyperlinkTarget="_blank" __WebPartId="{01816587-6AFE-4439-84E1-1137AC5F6800}" />
    <WpNs0:ExcelWebRenderer id="m_excelWebRenderer" runat="server" ChromeType="None" WebPart="true" Visible="false" Height="100%" __MarkupType="vsattributemarkup" Width="" __WebPartId="{1CFA4569-7F41-4832-A8FD-F6665177E209}" />
</asp:Panel>
</asp:Content>

Despite the fact that I have Height="100%" specified, the ReportViewerWebPart is not expanding to take up 100% of the view. Has anyone seen this behavior and if so, is there any workaround. I'm using Assembly="Microsoft.ReportingServices.SharePoint.UI.WebParts,Version=10.0.0.0".

share|improve this question

1 Answer

I'm thinking it probably isn't related to the height and width of the ReportViewerWebPart. Since it renders as a DIV with a height and width of 100%, it probably is one of the containing elements.

An easy check would be to give your Panel a static height/width (for example... 600px) and make sure the ReportViewerWebPart expands to those dimensions.

share|improve this answer
Hey, it seems to be the WebPart itself. The container fills the space, but the web part does not. – Daniel J. Segan Jan 5 '11 at 22:19
If the content inside the webpart isn't expanding, wouldn't the actual RDL need to be modified? It is hard to debug without actually looking at it so I would recommend using Firebug + Firefox to inspect. – Kit Menke Jan 6 '11 at 14:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.