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

Currency Format? #80

Closed
jaybeecave opened this issue Jul 14, 2017 · 1 comment
Closed

Currency Format? #80

jaybeecave opened this issue Jul 14, 2017 · 1 comment
Labels
enhancement New feature or request

Comments

@jaybeecave
Copy link

Cant figure out how to do currency format..

Does anyone know which number_format I can use in SetStyle?

@xuri xuri added the enhancement New feature or request label Jul 14, 2017
xuri added a commit that referenced this issue Jul 14, 2017
@xuri
Copy link
Member

xuri commented Jul 14, 2017

Thanks for your issue. I have added set currency format support and I'll improve support for other languages later. For example, you can set cell Sheet1!B4 in $ English (United States) currency format by NumFmt index 177:

styleIdx, err := f.NewStyle(&excelize.Style{NumFmt: 177})
err = f.SetCellStyle("Sheet1", "B4", "B4", styleIdx)

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

No branches or pull requests

2 participants