-
-
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
Excelize should have GetColStyle and GetRowStyle #1293
Labels
enhancement
New feature or request
Comments
yes, that would allow to copy style from existing File and have a better designed output |
This library supported getting row style ID by the rows, err := f.Rows("Sheet1")
if err != nil {
fmt.Println(err)
return
}
var rowNum int
for rows.Next() {
rowNum++
rowOpts := rows.GetRowOpts()
fmt.Printf("the style ID of row %d is %d\n", rowNum, rowOpts.StyleID)
}
if err = rows.Close(); err != nil {
fmt.Println(err)
} I have added new a function styleID, err := f.GetColStyle("Sheet1", "C") |
xuri
added a commit
to carbin-gun/excelize
that referenced
this issue
Oct 9, 2022
- Fix generate workbook corruption after insert cols/rows in some case - Update unit tests - Update dependencies module
xuri
added a commit
to JDavidVR/excelize
that referenced
this issue
Jul 11, 2023
- Fix generate workbook corruption after insert cols/rows in some case - Update unit tests - Update dependencies module
jenbonzhang
pushed a commit
to jenbonzhang/excelize
that referenced
this issue
Oct 22, 2023
- Fix generate workbook corruption after insert cols/rows in some case - Update unit tests - Update dependencies module
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
SetColStyle
andSetRowStyle
exist but there is no equivalent read method to read a column/row's style. Ideally this would return col/row styles without parsing the entire worksheet's XML (if that's possible?).The text was updated successfully, but these errors were encountered: