-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
hide worksheet and reorder sheets #226
Comments
Up Vote (the reordering part)! Would love to have a way to reorder sheets after they are added, particularly with streaming. I'm streaming in the first place because I'm working with large datasets. I have to create new sheets as I encounter certain types of data while streaming, which will occur randomly, but this means I can never control the final order of the sheets. I don't commit sheets until the very end anyway. If they haven't been committed, I really need a way to programmatically re-order the sheets (e.g., alphabetize by name with a Summary sheet as first one) just before doing the final commits. |
+1 on the hiding of sheets also |
@guyonroche Any thoughts about it? Need this actually, especially hiding of worksheet. Also would be great to export class |
npm install my branch the following will hide the second_sheet
if you want to hide the first_sheet, you need to specify the activeTab to second_sheet
|
Published @Hsinfu 's fix in v1.5.0 |
const wb = new Excel.Workbook(); this code is not working to hide the second sheet can explain how you did this |
Hello,
Would be useful if I could hide/unhide a worksheet. Currently couldn't see an option to do so.
Maybe as some property:
var sheet = workbook.addWorksheet('My Sheet', {properties: {hidden: true}});
Along with some function to check hidden status
workbook.getWorksheet('My Sheet').IsHidden(); // true or false
And to also toggle hidden status on the fly:
workbook.getWorksheet('My Sheet').hidden = true; // or false...
Would also be useful to re-order sheets in the workbook programmatically. I guess you could technically just "add" sheets in the correct order then circle back around and add data as necessary... but reordering sheets would allow you to not need to do that.
The text was updated successfully, but these errors were encountered: