If you became a customer of the Syncfusion� Reporting Platform or the Report Viewer, Report Designer, or Report Writer components before October 2019 and have questions related to those products, you can request support through our forum system. However, please note that this support system is only for existing customers who are still using the Syncfusion� Reporting Platform or its components and not for new customers looking for reporting products from Syncfusion�.

For new customers or those with general reporting questions, we recommend contacting our support team at https://support.boldreports.com/, which is a separate brand created by Syncfusion� for its reporting solutions. Our team will be happy to assist you with any questions you may have.

Thank you for choosing Syncfusion� for your reporting needs.

I can render locally using Report writer but unable to add rdlc files to asp.net core project

I have tested rendering a rdlc copied manually to my project of asp.net core, but im unable to add a new rdlc from vs 2017, also i can use the designer of vs2017 but im having trouble when trying to set it up the report datasets in asp.net core.

As far as i know the report writer supports local processing but havent found information about a functional example of how to do it with a local report, only with a remote one which doesnt include an rdlc file

Regards.

3 Replies

MM Mageshyadav M Syncfusion Team October 4, 2018 02:04 PM UTC

Hi Kevin, 
 
We have checked the mentioned problem by adding the RDLC report in VS 2017 and also rendered the RDLC report in ASP.NET Core application by passing the ReportDataSource in WebAPI as like as below shared code example and its working properly at our end. 
 
  public void OnInitReportOptions(ReportViewerOptions reportOption) 
        { 
            string basePath = _hostingEnvironment.WebRootPath; 
            FileStream inputStream = new FileStream(basePath + @"\ReportRDL\GroupingAggregate.rdlc", FileMode.Open, FileAccess.Read); 
            reportOption.ReportModel.Stream = inputStream; 
            reportOption.ReportModel.ProcessingMode = ProcessingMode.Local; 
 
        } 
 
        public void OnReportLoaded(ReportViewerOptions reportOption) 
        { 
            reportOption.ReportModel.DataSources.Clear(); 
            reportOption.ReportModel.DataSources.Add(new Syncfusion.Report.ReportDataSource { Name = "DataSet1", Value = SalesDetails.GetData() }); 
        } 
 
For your reference, we have prepared a sample to load the RDLC report in ASP.NET core application and can you please confirm whether the sample is working properly at your end, which can be downloaded from below location, 
 
Note: We have already logged the document task to revamp the complete ASP.NET Core documentation for ReportViewer and we will publish in online help document, once when we completed at our end asap.  
 
Regards, 
Mageshyadav.M 



KA Kevin Alexander Irías Hernández October 12, 2018 12:56 AM UTC

Hi,

I tested it out, the issue is that well, i meant with rdlc being it local within my .net core project. Also i found a way to include it within my project but it is behaving odd when being rendered like not respecting the design location of elements.

Regards.


MM Mageshyadav M Syncfusion Team October 12, 2018 07:28 AM UTC

Hi Kevin, 
 
We have checked the mentioned problem with our sample RDLC report and its working properly at our end. So can you please share the issue reproducible screenshot or RDLC file and it would be helpful for us to validate the mentioned problem at our end. Since we were not able to reproduce the exact issue without issue reproducible screenshot or RDL report. 
 
Regards, 
Mageshyadav.M 


Loader.
Up arrow icon