Report viewer does not load, showing blank space - running local RDLC files

前端 未结 10 1730
南笙
南笙 2021-02-08 04:56

I got a problem with reporting services, running local rdlc files on the 2005 version.

I have in the HTML a report viewer set to run locally as follows :



        
相关标签:
10条回答
  • 2021-02-08 05:25

    after changing size for paper or reportviewer won't work you can try my solution by adding more delay for

    WaitControlDisplayAfter

    sometimes your data too large to process for async

    0 讨论(0)
  • 2021-02-08 05:26

    I had the same problem and in my case it turned out that I have supplied the a dataset that was not the actually the object type that the report expected.

    In my situation the report expected a business object, but I have supplied a SQL Data source.

    I also encountered this same problem when there was parameters on the report which were not allowed to be null or blank but the parameter values was not supplied.

    Also note that in order to set a data source in code it has to be done in the onload event and not in the page_load event.

    0 讨论(0)
  • 2021-02-08 05:30

    Had the same problem. Took a while to figure out for me but it turns out I accidentally new'ed the reportViewer control myself so I lost what the Visual Studio Designer had created for me when I designed the form and that is why the reportviewer control kept coming up blank - I never set any properties on the Visual Studio Designer's ReportViewer object.

    Silly mistake but took quite some time to figure out.

    0 讨论(0)
  • 2021-02-08 05:31

    This one took some time to figure out, so hopefully these checks will save you some time:

    1) Verify the web.config

    <system.web>
      <httpHandlers>
        <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" validate="false" />
      </httpHandlers>
    
      <buildProviders>
        <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
     </buildProviders>
    </system.web>
    
    <system.webServer>
      <handlers>
        <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
      </handlers>
    <system.webServer>
    

    2) try the report viewer control directly in design view before moving any configuration into code

    Hard-Coded Report Viewer Control

    3) Verify that the script manager is on the page before the report viewer

    4) Ensure that the report runs outside of design viewer, either locally or on the SSRS server

    5) BE SURE THAT REPORT HAS DEFAULT VALUES FOR ALL PARAMETERS! Reports that require parameters and don't have default values show up blank.

    0 讨论(0)
提交回复
热议问题