We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SSIA
go get github.com/xuri/excelize/v2
package main import ( "github.com/xuri/excelize/v2" ) func main() { f := excelize.NewFile() if err := f.SetDocProps(&excelize.DocProperties{ Category: "category", ContentStatus: "Draft", Created: "2019-06-04T22:00:10Z", Creator: "Go Excelize", Description: "This file created by Go Excelize", Identifier: "xlsx", Keywords: "Spreadsheet", LastModifiedBy: "Go Author", Modified: "2019-06-04T22:00:10Z", Revision: "0", Subject: "Test Subject", Title: "Test Title", Language: "en-US", Version: "1.0.0", }); err != nil { panic(err) } if err := f.SetAppProps(&excelize.AppProperties{ Application: "Microsoft Excel", ScaleCrop: true, DocSecurity: 3, Company: "Company Name", LinksUpToDate: true, HyperlinksChanged: true, AppVersion: "16.0000", }); err != nil { panic(err) } f.NewSheet("new sheet") // <-------- TODO: It will be lost here. Commenting it out makes it work correctly. if err := f.SaveAs("sample.xlsx"); err != nil { panic(err) } }
go version
$ go version go version go1.18.4 darwin/amd64
$ grep excelize go.mod github.com/xuri/excelize/v2 v2.6.0 // indirect
$ sw_vers ProductName: Mac OS X ProductVersion: 10.15.7 BuildVersion: 19H1615
Microsoft Excel for Mac Version 16.63.1 (22071301) License: Microsoft 365 Subscription
The text was updated successfully, but these errors were encountered:
504d469
Thanks for your feedback. This issue has been fixed, please upgrade to the master branch code, and this patch will be released in the next version.
Sorry, something went wrong.
Thanks for the fix! <3
This closes qax-os#1298, fix doc properties missing after creating ne…
2d25d0d
…w worksheet
4f00c80
409995a
No branches or pull requests
Description
SSIA
Steps to reproduce the issue:
go get github.com/xuri/excelize/v2
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):**
The text was updated successfully, but these errors were encountered: