qax-os / excelize

Go language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets
https://xuri.me/excelize
BSD 3-Clause "New" or "Revised" License
17.64k stars 1.69k forks source link

Feature request: SetRowHeight for StreamWriter #1863

Closed wohenbushuang closed 3 months ago

xuri commented 3 months ago

Thanks for your issue. Please reference the example in the documentation, you can specify row height by the Height field in the RowOpts data type when writing data in stream:

if err := sw.SetRow("A1",
    []interface{}{
        excelize.Cell{StyleID: styleID, Value: "Data"},
    },
    excelize.RowOpts{Height: 45, Hidden: false}); err != nil {
    fmt.Println(err)
    return
}

So, we needn't add this new export function. I'll close this issue. If you have any questions, please let me know, and you can reopen this anytime.