-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
SetCellStr creates cells that are interpreted by excel with format "General" #1915
Comments
Thanks for your issue. This was duplicated with issue #705, you can set cell var style int
if style, err = f.NewStyle(&excelize.Style{NumFmt: 49}); err != nil {
fmt.Println(err)
return
}
if err = f.SetCellStyle("Sheet1", "A1", "A1", style); err != nil {
fmt.Println(err)
return
} This library also support set multiple cell's style by |
I am not sure what this means: should the method What does NumFmt 49 do btw? |
The |
Ok, thanks! |
Description
When I use the method SetCellStr I get cells
that are formatted by Microsoft Excel with format "General" instead of the
expected format "Text"
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
MAC OS X
The text was updated successfully, but these errors were encountered: