Starting in 2019, the Reporting control is no longer included in Essential Studio®. If you're experiencing issues with the Syncfusion� Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.

Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.

We thank you for choosing Syncfusion� and appreciate your understanding.

Reports not Exporting

I have made API in Asp.Net Core framework
When i want export reports it not works
Please refer the attached Screen shot and do the needful.

Thanks

Attachment: Export_b7e460ba.rar

8 Replies

MM Mageshyadav M Syncfusion Team October 8, 2018 11:36 AM UTC

Hi Chiranjiv, 
 
We suspect the mentioned problem might be occurred when the exported dependent assemblies are not referred properly in your ASP.NET Core API service application. So can you please ensure the below ReportViewer dependent nuget file are installed properly at your end.  
  • Syncfusion.EJ.ASPNET.Core
  • Syncfusion.EJ.ReportViewer.AspNet.Core
  • Syncfusion.Licensing
 
If we install the above NuGet packages, it automatically add the below ReportViewer dependent NuGet file in your application, 
  • Syncfusion.EJ
  • Syncfusion.Compression.Net.Core
  • Syncfusion.DocIO.Net.Core
  • Syncfusion.Pdf.Net.Core
  • Syncfusion.Report.Net.Core
  • Syncfusion.XlsIO.Net.Core
 
For your reference, we have shared a API service sample, RDL report used in the service and exported PDF file, which can be downloaded from below location, 
 
So can you please replace your RDL file in above shared service sample and if the issue still persists, then share the issue reproducible RDL file to validate the mentioned problem at our end.  
 
Regards, 
Mageshyadav.M 



MM Mageshyadav M Syncfusion Team October 8, 2018 01:21 PM UTC

Hi Chiranjiv, 
 
On further analysis of the shared screenshot, it shows the export process call the PostReportAction API method. But in ASP.NET Core application when the export process occurs it will call the PostFormReportAction API method. So can you please confirm which application you are using for Web API at your end, since PostReportAction API method will not be called in ASP.NET Core application. Hence if you share your issue reproducible sample and it would be helpful for us to validate the mentioned problem at our end.     
 
Regards, 
Mageshyadav.M 



CH chiranjiv October 8, 2018 01:25 PM UTC

I am using Asp.Net Core web API.
And calling this API from Angular 2 application


CH chiranjiv October 8, 2018 02:30 PM UTC

hi,

I have tried to export reports with your example API for ASP.Net Core but the Result is same.

I have attached both projects  Asp.Net Core API  and Angular 2, Please find in the attachment and do the needful.

Attachment: ReportApi_With_Angular2_Sample_9dfcf854.rar


CH chiranjiv October 10, 2018 07:40 AM UTC

Hello there,

Any update for above issue??


MM Mageshyadav M Syncfusion Team October 10, 2018 02:39 PM UTC

Hi Chiranjiv, 
 
Export is not working 
On further analysis of the shared Angular sample, the mentioned problem occurs when you have referred the older version Syncfusion JavaScript file in Package.json file. So can you please upgrade to the latest version (16.3.21) as shown in below screenshot, 
 
 
 
We have modified the shared Angular sample and it can be downloaded from below location, 
 
Default parameter is not specified for the hidden parameter.  
Also you have not specified the default value for the hidden parameter. So can you please specify the default value for the hidden parameter as shown in below code example, 
 
    constructor(public http: Http, 
                private authSercice:AuthenticationService) { 
 
                    this.authSercice.getData() 
                    .subscribe( 
                     (response) => { 
                            
             
                          this.reportPath='/Reports/employee.rdl'; 
                          this.serviceUrl = 'http://localhost:53800/api/ReportApi';     
                          this.reportData = JSON.parse(response._body);    
                            this.parameters = [{ 
                                                name: 'myToken',  
                                                labels: ['Test'],  
                                                values: ['Test'],  
                                                nullable: false  
                          }];  
                          console.log(this.reportData); 
                          this.flag=true; 
                          
                         }); 
                          
 
            // var currentUser=JSON.parse( localStorage.getItem('currentUser')); 
 
            // this.Role=currentUser["_body"]; 
 
    } 
 
Please refer to the below UG documentation link for more detail, 
   
Specifying the default value for the parameter will not work in ASP.NET Core 
 
We have an issue in specifying default value for parameter in latest version (16.3.0.21) Nuget packages and we have fixed this issue at our end. So a support incident to get the patch for this issue has been created under your account. Please log on to our support website to check for further updates.
http://www.syncfusion.com/Account/Logon?ReturnUrl=%2fsupport%2fdirecttrac
 
 
 
Regards, 
Mageshyadav.M 



CH chiranjiv October 15, 2018 04:53 AM UTC

Thank you so much for the support. Now it works fine at my end.


VS Vinoth Srinivasan Syncfusion Team October 15, 2018 05:16 AM UTC

Hi Chiranjiv, 
 

Thanks for your update. Please let us know if you require any further assistance on this. 

Regards, 
Vinoth S. 


Loader.
Up arrow icon