Reportviewer sizing problem RRS feed

  • Question

  • OK, I'll try to spell out my issue, and hopefully it will make some degree of sense -

    I've got my .net app where I have reports which swap out different .rdlcs to a reportviewer, based on user input.  If they choose a certain criteria, my reportviewer does a swap, i.e.

    repviewer.LocalPath.ReportPath = @"...../something.rdlc"

    Data is retrieved and bound to repviewer, and the data is displayed without problem.

    Problem is, the "navigation" part of the rdlc, i.e. paging fields (1  of 3), the export drop down (Excel  Acrobat PDF file) etc, is all strewn out, that is, spans multiple lines, way too much spacing in between the individual criteria.  I just need these fields to be all on one line with normal spacing.  Never  had this problem before (I'm relatively new to SSRS).  Seems I've tried altering all of the relevant attributes to the Reportviewer, but they all deal with data rows and headers/footers, and not with the navigation area itself.  Is there a way to control the size of the navigation area?

    Any ideas on how to fix?


    Tuesday, April 19, 2011 5:24 PM


  • Assuming an ASP.NET app:

    Are you saying that the navigation bar doesn't get on one line even though you size the reportviewer so that they are all on the same line? Is your ReportViewer.SizeToReportContent set to true? This could mean that if the RDLC report is too small, then the navigation bar could wrap in order to size This could be a layout issue of the reportviewer itself. I do know that this can happen in the Web reportviewer if say it is in a container (like a table) AND when the table is resized. The VS2010 version of the reportviewer has a JavaScript function called recalculateLayout() to deal with this situation. Not sure if that's what you need, but you can try it.

    You're talking about data rows, headers, and footers. These are not reportviewer attributes - they sound more like the attributes of the RDLC report that's hosted by the reportviewer. You need to click on the reportviewer control in your .ASPX file to see its properties in the properties window.

    Cephas Lin This posting is provided "AS IS" with no warranties.
    • Proposed as answer by Eileen Zhao Friday, April 22, 2011 7:13 AM
    • Marked as answer by Challen Fu Friday, April 29, 2011 1:20 AM
    Thursday, April 21, 2011 3:50 PM