We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

No initializing Report Viewer in Net Core 2,1


Hello

I'm initializing the report viewer in a net core 2.1 application

What am I doing wrong?

PD: I am helping myself with the following
https://reports.syncfusion.com/documentation/aspnet-core/report-viewer/display-ssrs-rdl-report-in-asp-net-core-application/


Attachment: ReportView_443128c6.rar

1 Reply

VS Vinoth Srinivasan Syncfusion Team June 27, 2019 09:46 PM

Hi Jose, 

Thanks for your interest in Syncfusion Components. 

We have checked your sample and you have added the jquery.js script two times in your sample, so it is overriding the Report viewer control. So, we suggest you to add jquery.js script only once as shown in below code example for avoiding the mentioned problem at your end. 

<head> 
    <meta charset="utf-8" /> 
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 
    <title>@ViewData["Title"] - ReportView</title> 
 
    <environment include="Development"> 
        <link rel="stylesheet" rel='nofollow' href="~/lib/bootstrap/dist/css/bootstrap.css" /> 
        <link rel="stylesheet" rel='nofollow' href="~/css/site.css" /> 
    </environment> 
    <environment exclude="Development"> 
        <link rel="stylesheet" rel='nofollow' href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/css/bootstrap.min.css" 
              asp-fallback-rel='nofollow' href="~/lib/bootstrap/dist/css/bootstrap.min.css" 
              asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" /> 
        <link rel="stylesheet" rel='nofollow' href="~/css/site.min.css" asp-append-version="true" /> 
    </environment> 
 
    <link rel='nofollow' href="https://cdn.syncfusion.com/4.1.0.16/js/reports/material/ej.reports.all.min.css" rel="stylesheet" /> 
    <script src="https://cdn.syncfusion.com/js/assets/external/jquery-1.10.2.min.js" type="text/javascript"></script> 
 
    <!--Render the chart item. Add this script only if your report contains the chart report item.--> 
 
    <!--Render the gauge item. Add this script only if your report contains the gauge report item. --> 
 
    <!--Render the map item. Add this script only if your report contains the map report item.--> 
 
    <!-- Report Viewer component script--> 
</head> 
<body> 
    <nav class="navbar navbar-inverse navbar-fixed-top"> 
        <div class="container"> 
            <div class="navbar-header"> 
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> 
                    <span class="sr-only">Toggle navigation</span> 
                    <span class="icon-bar"></span> 
                    <span class="icon-bar"></span> 
                    <span class="icon-bar"></span> 
                </button> 
                <a asp-area="" asp-controller="Home" asp-action="Index" class="navbar-brand">ReportView</a> 
            </div> 
            <div class="navbar-collapse collapse"> 
                <ul class="nav navbar-nav"> 
                    <li><a asp-area="" asp-controller="Home" asp-action="Index">Home</a></li> 
                    <li><a asp-area="" asp-controller="Home" asp-action="About">About</a></li> 
                    <li><a asp-area="" asp-controller="Home" asp-action="Contact">Contact</a></li> 
                </ul> 
            </div> 
        </div> 
    </nav> 
 
    <partial name="_CookieConsentPartial" /> 
 
    <div class="container body-content"> 
        @RenderBody() 
        <hr /> 
        <footer> 
            <p>&copy; 2019 - ReportView</p> 
        </footer> 
    </div> 
 
    <environment include="Development"> 
        @*<script src="~/lib/jquery/dist/jquery.js"></script>*@ 
        <script src="~/lib/bootstrap/dist/js/bootstrap.js"></script> 
        <script src="~/js/site.js" asp-append-version="true"></script> 
    </environment> 
    <environment exclude="Development"> 
                asp-fallback-src="~/lib/jquery/dist/jquery.min.js" 
                asp-fallback-test="window.jQuery" 
                crossorigin="anonymous" 
                integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT"> 
        </script> 
                asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js" 
                asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal" 
                crossorigin="anonymous" 
                integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"> 
        </script> 
        <script src="~/js/site.min.js" asp-append-version="true"></script> 
    </environment> 
 
    @RenderSection("Scripts", required: false) 
 
    <sf-script-manager></sf-script-manager> 
</body> 
</html> 
 
 
We have modified your sample based on this and it can be downloaded from below location. 

Regards, 
Vinoth S. 


Loader.
Live Chat Icon For mobile
Up arrow icon