DNK Gif

Dot Net Knowledge

Labels

Tuesday, 7 July 2015

Opening password protected Excel2013 file using Aspose.cells

How to open Password protected Excel file ?

Hey! I am not going to hack or any thing like that, Of course password is needed to open the file. 

For this latest version of Aspose.cells.dll is needed.
This version  Aspose.Cells for .NET v8.5.0.2 supports this feature, you can download the same.

This is the code to do this programmatically.

            LoadOptions loadoptions = new LoadOptions( );            
            loadoptions.Password = "umesh1";    
            string filepath="C:\\Dev\\MyExcel.xlsx";       
            Workbook workbook = new Workbook(filePath, loadoptions);

No comments:

Post a Comment