Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to use SpreadsheetDocument to create some excel, but it always wait long time, last show the white page.

What I have tried:

I test the officail example, but it no effect. SpreadsheetDocument Class (DocumentFormat.OpenXml.Packaging) | Microsoft Docs[^]
Posted
Updated 28-Jan-21 21:14pm
v2
Comments
OriginalGriff 29-Jan-21 1:46am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with.
Use the "Improve question" widget to edit your question and provide better information.
rtksmithjoton123 29-Jan-21 2:29am    
I follow this example: https://docs.microsoft.com/en-us/dotnet/api/documentformat.openxml.packaging.spreadsheetdocument?view=openxml-2.8.1#examples
Richard MacCutchan 29-Jan-21 3:20am    
It is a console application with a call to Console.ReadKey(); at the end. So it is waiting for you to press a key to terminate the program.
rtksmithjoton123 29-Jan-21 3:26am    
I put it into a asp.net core project. So I wait a long time.
Richard MacCutchan 29-Jan-21 4:00am    
You cannot use Console methods in an ASP.NET project.

1 solution

Take a look at NReco.CSV or FileHelpers:
net-libraries-to-import-export-data-from-delimited-records[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900