Conversion .doc arabe en .txt avec c#

Fermé
08815266 Messages postés 52 Date d'inscription jeudi 7 janvier 2010 Statut Membre Dernière intervention 28 février 2017 - 13 mai 2010 à 02:09
slt à ts, je suis bloqué dans l'extraction du texte d'un document word en arabe avec asp.net en c#, svp si qq a une idée, j'ai essayer avec la fonction :
void DocToTxt(string docPath, string htmlPath)
{
// ouverture de Word
Microsoft.Office.Interop.Word.Application app = new Microsoft.Office.Interop.Word.Application();
// on le cache !
app.Visible = false;
// pour les paramètres qu'on ne va pas fournir :
object o = Missing.Value;
object docFile = docPath; // chemin du doc avec transtypage
// Ouverture du document :
_Document doc = app.Documents.Open(ref docFile, ref o, ref o,
ref o, ref o, ref o, ref o, ref o, ref o, ref o, ref o,
ref o, ref o, ref o, ref o, ref o);
object fileName = htmlPath; // Chemin de destination
object format;
format = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatText;//Txt
// On enregistre le doc au format texte :
doc.SaveAs(ref fileName, ref format, ref o, ref o, ref o, ref o,
ref o, ref o, ref o, ref o, ref o, ref o, ref o,
ref o, ref o, ref o);
object t = true;
// On quitte en évitant les messages de fermeture
doc.Close(ref o, ref o, ref o);
app.Quit(ref o, ref o, ref o);
}
le txt qui se produise tous les lettre se transforment en des pts d'interrogation.
A voir également: