question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

exposing workbook with callback

See original GitHub issue

can you please add a callback to xlsx to access workbook e.g

function xlsx (jsonSheets: IJsonSheet[], settings: ISettings = {}, callback): Buffer | undefined {
 ........
 })

  if (callback) callback(workbook);
  return writeWorkbook(workbook, settings)
}

It will help to set filter to a worksheet and calculated cache value for Excel formula

    var buffer = xlsx(data, settings, function(workbook) {
        XLSX_CALC(workbook);
        workbook.Sheets.mysheet['!autofilter'] = {ref: 'A1:H5'};
    })

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
QuadTrianglecommented, Dec 18, 2021

Yes. Now, it works without any changes. Thanks for your time and quick responses 😊

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Callbacks - Analysis - SAP Help Portal
Analysis offers different callbacks that are executed with certain events. Callback 'Workbook_SAP_Initialize' is always executed. The other callbacks listed ...
Read more >
Exposing Callback and Webhook URLs on Localhost - Lullabot
I needed to expose a public URL from my local machine. There are a few tools that offer this functionality, but the best...
Read more >
How to Expose Methods in your VSTO Add-in
[…] this example, we will be building upon my previous post on exposing methods using the RequestComAddInAutomationService callback. First, you ...
Read more >
Looping through rows and columns #270 - SheetJS ... - GitHub
Basically it would take a worksheet and a callback function and repeatedly call it for every cell in the workbook, with an option...
Read more >
How to reference the correct workbook from a control ... - MSDN
In the ribbon class add the callback, which sets the label to be the name of the workbook associated with the ribbon control....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found