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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid Excel Export issues

Thread ID:

Created:

Updated:

Platform:

Replies:

149077 Nov 13,2019 05:57 PM UTC Nov 15,2019 03:56 AM UTC Blazor 3
loading
Tags: Grid
Fabrizio Alessandro
Asked On November 13, 2019 06:04 PM UTC

Hello,

I have two issues with the Excel export of a Grid:
  1. When I call the method grid.ExcelExport() I got the Blazor message "attempt to reconnect to the server", download starts and after some seconds it reconnects to the server.
  2. When I open the downloaded file, Excel (16.0.12231) throws the message "There was a problem with part of the file content. Try to recover the content?" (translated to English). I choose yes, then Excel opens the file and it see complete. It says the repaired part is something like /xl/styles.xml (Styles).
I'm on 17.3.0.27.

Thank you

Renjith Singh Rajendran [Syncfusion]
Replied On November 14, 2019 12:44 PM UTC

Hi Fabrizio, 

Thanks for contacting Syncfusion support. 

We tried to reproduce the reported problem by creating a sample to perform excel exporting with our latest version(17.3.0.27). But we are not able to reproduce the reported problem. The exporting works fine from our side. We are attaching the sample for your convenience, please download the sample from the link below, 

We need more details to further proceed on this and provide you a solution as early as possible, kindly share with us the following details for better assistance, 
  1. Share the sample which you have tried from your side, or reproduce the problem with the attached sample and share with us.
  2. Are you having template column or contain any anchor tag in Grid. And also share the total number of records bound to Grid.
  3. Share the video demo showing the problem.
  4. Share the exported excel file.
  5. Share your full Grid code.
  6. Share the details about the type of application you are using.(Blazor WebAssembly Client or Blazor Server Side)

And also we suspect that, you may be facing issue with serializing large data. In these scenario, you can increase the buffer size by including the below highlighted line into your Startup.cs file. 

[Startup.cs] 
 
        public void ConfigureServices(IServiceCollection services) 
        { 
            services.AddRazorPages(); 
            services.AddServerSideBlazor(); 
            services.AddSignalR(e => 
            { 
                e.MaximumReceiveMessageSize = 102400000; 
            }); 
        } 
 

Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran. 


Fabrizio Alessandro
Replied On November 14, 2019 05:39 PM UTC

Adding the highlighted code to Startup.cs makes all working!

services.AddSignalR(e => 
{ 
     e.MaximumReceiveMessageSize = 102400000; 
}); 

Thank you!

Vignesh Natarajan [Syncfusion]
Replied On November 15, 2019 03:56 AM UTC

Hi Fabrizio,  

Thanks for the update.  

We are glad to hear that you query has been resolved by our solution.  

Please get back to us if you have further queries.  

Regards, 
Vignesh Natarajan. 


CONFIRMATION

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