after making a successful download:
from the site, I try to open the Excel file.
Hi, I used the try catch as you suggested to catch the error. Try cartExcel = appExcel.Workbooks.Open (PathDB) Catch ex As Exception Me.LBL_Message.Text = ex.Message Me.LBL_Message.Visible = True Exit Function End Try The message that I write in the label ( LBL_Message) is the following error: Office has encountered an error with this file. This file can not be opened to protect your computer.
Help me please