I am exporting data in Excel form using EPPLUS Excel Library. I want that when excel downloaded it will ask for password. I have tried following code.
package.GetAsByteArray("sometest"); ---> this will protect your excel sheet with password sometest :)