SQL Server 2016 CTRP3.2 Report Viewer is missing a JavaScript method

前端 未结 4 1576
暗喜
暗喜 2021-01-07 05:56

Using SQL Server 2016 CTP3.2 Report Viewer (13.0.800.111), only the toolbar is shown.

It looks like a Power BI method is missing.

Also, wil

相关标签:
4条回答
  • 2021-01-07 06:30

    Was able to avoid this script error with the 2016 Report Viewer. Try adding these missing references before the Report Viewer definition.

    Note: This will only work if your Report Server is on the same domain as your Website. You can also manually copy the files into your project and then serve them locally if your on a separate domain.

    0 讨论(0)
  • 2021-01-07 06:34

    To overcome broken report viewer you have to purge its files v.13.0.1601.5 from GAC and use updated ones from nuget package: Microsoft.ReportingServices.ReportViewerControl.WebForms.Preview (version 130.1700.305, published 2016-09-20).

    • Make sure you have the latest version of SQL Server Data Tools installed. Earlier versions incorrectly GAC'ed certain libraries that will cause issues.
    • The Report Viewer Control is designed to be included in projects via nuget. It's not a good idea to add the libraries to the GAC.
    • If deploying the control on an intranet site make sure that the page is targeting HTML5.

    More info at this page: https://github.com/Microsoft/Reporting-Services/blob/master/Docs/Get-Started-With-RVC.md#next-steps---read

    It works:

    0 讨论(0)
  • 2021-01-07 06:37

    Just ran across this thread. The question: "will there be a NuGet for Report Viewer?" -- Yes, look out for a NuGet version of 2016 based report viewer controls this month (September).

    Note that the controls will not expose the PowerBI method described here.

    0 讨论(0)
  • 2021-01-07 06:40

    Sample of the missing javascript method "OnPowerBIFeaturesRelease" in localmode

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