Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty file is corrupted #837

Open
whimax opened this issue Jan 21, 2025 · 1 comment
Open

empty file is corrupted #837

whimax opened this issue Jan 21, 2025 · 1 comment

Comments

@whimax
Copy link

whimax commented Jan 21, 2025

simple code:
func main() {
wb := xlsx.NewFile()
wb.AddSheet("My New Sheet")
wb.Save("out.xlsx")
}
creates a file that does not open in excel. Excel says the file is corrupted.
Is this a bug or am I doing something wrong?

@tealeg
Copy link
Owner

tealeg commented Feb 18, 2025

@whimax sounds like a bug indeed. If Excel corrects the file for you it can be informative to see a before and after version of the file. I don't actually have access to Excel to check myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants