Open kiranakhale opened 9 years ago
I would like to how to know how to pass hyperlinks to excel or how to pass formula to excel so that i will pass "=HYPERLINK('https://www.google.com','tweeswrtsfd')" or how to pass html data to excel which be rendered as normal text for eg - test this would be rendered in excel as test with hyperlink to google.com
Can some provide an example with xlxs.js? We are currently using this js and we would require hyperlinks in export to excel
Hi,
I would like to have hyperlink field in my excel.
Can someone help me with it?
Following is my code used
var file = { worksheets: [], creator: 'Analyze', author: 'Analyze', created: new Date(), lastModifiedBy: 'Analyze', modified: new Date(), activeWorksheet: 0 }; var resultType = Search.resultType(); var projectExcelHeaderRow = ['Project Name', 'Matching Searches', 'Bid Date', 'Project Value', 'Country Code']; var companyExcelHeaderRow = ['Company Name', 'Country', 'State', 'County', 'Role Classification Parent', 'Role Classification']; $.merge(companyExcelHeaderRow,Search.matchingQueryTitles());
var fileName = exportFileName + "_" + sampleDt +".xls"; var a = document.createElement('a'); a.id = "downloadExcel"; a.setAttribute('download', fileName); a.href = xlsx(file).href(); a.style.display = 'none'; document.body.appendChild(a); a.click(); $('#downloadExcel').remove();