How to protect excel spreadsheet with password from asp.net

G

Guest

I am trying to create an excel spreadsheet from my asp.net 2.0(vb.net) code.
I can create the file and even protect it, but I cannot protect it with a
password. Here's my code:

Dim xl As New Spreadsheet
xl.ActiveSheet.Protect("testpassword")

Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top