Free Support Forum - aspose.com

Problems opening Workbook as stream

When I use the following code to open up a file uploaded to an asp.net application, I get the error, "Please provide password for the Excel file". There is a password on the workbook/worksheet, but not the file.

Dim oExcel As New Aspose.Excel.Excel

Dim oAsposeLicense As New Aspose.Excel.License

oAsposeLicense.SetLicense("Aspose.Excel.lic")

oExcel.Open(File.InputStream, Aspose.Excel.FileFormatType.Default, "")

I've also tried specifying the password that I've protected the worksheets with, but it still does not work.

Any advice?

Could you post your file here? I will check it ASAP.

Laurence,

Here is the file. The password for worksheets and workbook is the same: "1password"

Thanks for your help.

Sid