Created
August 6, 2024 05:18
-
-
Save fileformat-cells-gists/971bbfd1a93d1ec11902cbeaf05b1c8d to your computer and use it in GitHub Desktop.
This C# example showcases how to set visibility within a MS Excel worksheet in C# using Openize.Cells
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using FileFormat.Cells | |
string filePath = "Z:\\Downloads\\testFile1.xlsx"; | |
string sheetName = "TestSheet"; | |
// Load the workbook from the specified file path | |
using (Workbook wb = new Workbook(filePath)) | |
{ | |
wb.SetSheetVisibility(sheetName, SheetVisibility.Hidden); | |
wb.Save(filePath); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment