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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Reportviewer does not display data using ObjectDataSource

Thread ID:





144378 May 2,2019 04:56 PM UTC May 9,2019 06:33 PM UTC ASP.NET MVC 1
Tags: ReportViewer
Roger Alberto
Asked On May 2, 2019 05:02 PM UTC

I'm trying to insert a reportviewer with an rdlc file, for the data I have a dataset and an ObjectDataSource that work, but when I try to use the Reportviewer I do not load the report.
ASP page.
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ConstanciaParte2.aspx.cs" Inherits="_Academicos_ConstanciaParte2" %>

<%@ Register assembly="Syncfusion.EJ, Version=16.4460.0.52, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" namespace="Syncfusion.JavaScript.Models.ReportViewer" tagprefix="cc1" %>

Page Load C#

List rptDatasources = new List();
ReportDataSource rptDatasource1 = new ReportDataSource();
rptDatasource1.Name = "Dataset1";
ObjectDataSource1.SelectParameters[0].DefaultValue = Request.QueryString["id_matricula"];
rptDatasource1.Value = ((DataView)ObjectDataSource1.Select()).ToTable();
ReportDataSource rptDatasource2 = new ReportDataSource();
rptDatasource2.Name = "Dataset2";
ObjectDataSource2.SelectParameters[0].DefaultValue = Request.QueryString["id_matricula"];
rptDatasource2.Value = ((DataView)ObjectDataSource2.Select()).ToTable();
this.ReportViewer1.DataSources = rptDatasources;
this.ReportViewer1.ReportServiceUrl = VirtualPathUtility.ToAbsolute("~/api/RDLCReport");
Really estimate it your answer.

Attachment: report_8eb8be36.zip

Vinoth Srinivasan [Syncfusion]
Replied On May 9, 2019 06:33 PM UTC

Hi Roger, 
Thanks for your interest in our Syncfusion product. 
We have checked the mentioned report not rendering issue with your shared details and it is working properly. We suspect the mentioned issue occurs when script and assembly version are mismatching. So, we have prepared the simple RDLC sample for your reference and it can be downloaded from below location. 
Could you please confirm whether the above sample is working at your end? If issue still persists then could you please revert the above shared sample with issue reproducible case to validate the mentioned problem at our end. 
Vinoth S. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon