Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Comment on "Sheet Protection"

$
0
0
This way of protect did not work for me. Here is my code snippet: _wb = new XLWorkbook(); var ws =_wb.Worksheets.Add(finalDataTable, "Data Export"); ws.Protect("passw0rd!"); var path = ExportFilePath; _wb.SaveAs(path); After saving the workbook when I open the spreadsheet, it just opens up without any password prompt.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>