Essayez de lancer un appel pour exécuter un script qui ouvre le fichier, puis ne
COPIER {} certains fichiers de type FOX2X
qui devrait vous obtenir la sortie ...
Il y avait un autre poste similaire d'un tout se fait via C# par la vfpoledb et je vais essayer de le trouver ... Eh oui, et avec le crédit à @DaveB voici un extrait de son poste à Create .DBF in C# code that is readable from Excel (VFP or not)
string connectionString = @"Provider=VFPOLEDB.1;Data Source=C:\YourDirectory\";
using (OleDbConnection connection = new OleDbConnection(connectionString))
{
using (OleDbCommand scriptCommand = connection.CreateCommand())
{
connection.Open();
string vfpScript = @"USE TestDBF
COPY TO OldDBaseFormatFile TYPE Fox2x
USE";
scriptCommand.CommandType = CommandType.StoredProcedure;
scriptCommand.CommandText = "ExecScript";
scriptCommand.Parameters.Add("myScript", OleDbType.Char).Value = vfpScript;
scriptCommand.ExecuteNonQuery();
}
}
Le message original était pour quelqu'un d'être en mesure d'ouvrir le fichier au format Excel.
Ok, merci. Je vais essayer ce – Jax