Having trouble loading Excel file

I'm getting a

System.NullReferenceException: Object reference not set to an instance of an object.

error. It is on the line:

ExcelWeb1.WebWorksheets.ImportExcelFile("C:\Websites\Brent\Excel\EmptySpecialQuoteEngData.xls")

The path is correct and the file permissions are correct. Any ideas?

I added this before the page load:

Dim ExcelWeb1 As New ExcelWeb

I need to be able to load a spreadsheet, add to it, and allow the user to modify it further, and then allow the user to save the file.

I wish your code samples contained more info. Seeing the code for your demo page would be helpful.

Thanks,

Brent

Hi Brent,

Do you use the latest v1.4.3? If yes, could you please post your file here? We will check it ASAP.