ISAM not installable

G

Guly

Hi,
i' ve the follow problem: the code below generate an exception....

private void btnElabora_Click(object sender, System.EventArgs e)
{

File.Copy(FileName, @"C:\\Paesi\\Paesi.xls", true);

OleDbConnection objConn = new System.Data.OleDb.OleDbConnection(
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=
C:\\Excel_Prova.xls;Extended Properties=Excel 8.0;HDR=YES;");
objConn.Open();

OleDbCommand objCmd = new OleDbCommand();
objCmd.Connection = objConn;

objCmd.CommandText = "INSERT INTO [Sheet1$]
IN 'C:\\Excel_Prova.xls' 'Excel 8.0;' SELECT * FROM qry_Paesi_Risult";

objCmd.ExecuteNonQuery();
objConn.Close();
}

The exception is the following:
"Installable ISAM not found."
Help me!

Tia. Guly
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top