Click here to Skip to main content
16,004,602 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I would like to ask everyone

I created a WebGL file in Unity and wanted to export it to xlsx file (Excel)

Using the EPPlus suite

The function of my source code is as follows

https://pastebin.com/1QCrB4AX

However, when throwing the packaged WebGL file to Apache Server for execution, the following error message will appear:

https://lurl.cc/yMqeE

Can you please tell me how to solve this problem?

Thank you so much!

What I have tried:

I went to Debug in the direction that the EEPlus package does not support WebGL, and tried changing the package and changing the Code.
ways to try, tried ClosedXML, GemBox.Spreadsheet, OpenXMLSDK suite and embedded
The SheetJS suite uses JavaScript to convert data into xlsx files... and found that different BUGs were generated, but
There is also no way to export the xlsx file.
Can you please tell me how to solve this problem?
Posted
Updated 20-Aug-24 13:51pm
v3
Comments
PIEBALDconsult 20-Aug-24 9:24am    
Just export CSV. Then Excel can read it, or another app can read it.
What is being done with the export downstream? Does the recipient really want Excel?

1 solution

Honestly, unless you are prepared to post code here in Code Project, it's very unlikely that anyone is going to help you. Posting random links to shortened URLs that could lead anywhere is not a way to gain trust. On top of that, I can't imagine what you are trying to export here. Are you trying to paste screenshots into Excel? Source code? Whatever you are trying to do here, you need to stop and consider whether a spreadsheet is the correct choice.

Rather than randomly doing things, tell us what it is that you are trying to accomplish with this. What is your actual requirement? We are more much more likely to be able to help if you tell us what you are trying to actually do, and we may be able to suggest alternatives.
 
Share this answer
 
Comments
黃翊凱 Peter Huang 2024 20-Aug-24 19:53pm    
I want to let Unity create a WebGL web page and it can export an xlsx file.
Dave Kreskowiak 20-Aug-24 20:03pm    
How does that even work? How does a web page fit the tabular format of Excel?

Or are you talking about exporting a table in the web page to Excel?
黃翊凱 Peter Huang 2024 20-Aug-24 20:23pm    
I wrote a program to monitor voltage values. I saved the voltage values ​​as a JSON file and converted the data in the JSON file into an xlsx file.

However, an error occurred during the conversion to xlsx file, and I am now looking for a solution.
Dave Kreskowiak 21-Aug-24 0:08am    
And without the error messages posted here and the code that generated those errors, it's pretty much impossible to tell you what's going on.

No, it's not clicking shortened URL's that can go to anywhere. I don't trust them and I don't trust you either.

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