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

Hyperlink and StreamWriter #982

Open
k1ng440 opened this issue Aug 6, 2021 · 4 comments
Open

Hyperlink and StreamWriter #982

k1ng440 opened this issue Aug 6, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@k1ng440
Copy link

k1ng440 commented Aug 6, 2021

Description
Set hyperlink to a cell after flushing StreamWriter does not work

Steps to reproduce the issue:

  1. StreamWriter.Flush
  2. SetCellHyperLink
  3. Save

Describe the results you received:
Hyperlinks are not created

Describe the results you expected:
Hyperlinks should be created

Output of go version:

go version go1.16.5 linux/amd64

Excelize version or commit ID:

	github.com/360EntSecGroup-Skylar/excelize/v2 v2.4.0

Environment details (OS, Microsoft Excel™ version, physical, etc.):
Windows, Office 365

@xuri
Copy link
Member

xuri commented Aug 6, 2021

Note that according to the documentation, the normal API and streaming API can't be work mixed to writing data on the worksheets.

@k1ng440
Copy link
Author

k1ng440 commented Aug 6, 2021

Note that according to the documentation, the normal API and streaming API can't be work mixed to writing data on the worksheets.

we generate huge documents. links are must to navigate between sheets

is there any possibility to add it, please?

@xuri
Copy link
Member

xuri commented Aug 6, 2021

The stream writer doesn't support set hyperlinks currently, I have added this feature request to the Roadmap.

@xuri xuri closed this as completed Aug 6, 2021
@xuri xuri added the enhancement New feature or request label Aug 6, 2021
@xuri xuri reopened this Aug 6, 2021
@yinziyang
Copy link

you can use HYPERLINK

like this:

link := "https://www.google.com"
streamWriter.SetRow("A1", []interface{}{
    excelize.Cell{Formula: `HYPERLINK("` + link + `","Open")`},
})

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

3 participants