[Mono-dev] Reading and writing excel files

"ZABALA CALVO, IÑAKI" IZABALA at AERO.GAMESA.ES
Tue Jan 31 04:24:51 EST 2006



I am trying to read and write Excel .xls files
I have tried it with COM:

using System;
using Microsoft.Office.Interop.Excel;

public class ExcelDemo { 
  public static void Main () 
  {
    Microsoft.Office.Interop.Excel.Application app = new
Microsoft.Office.Interop.Excel.Application();
    Console.WriteLine("Version is {0}.", app.Version);
  }
}

I have compiled it: 
mcs exceldemo.cs -r:System.Office.Interop.Excel.dll

But I have got a message box with "** ERROR **: Method
'Microsoft.Office.Interop.Excel.ApplicationClass:.ctor()' in assembly
'...\Microsoft.Office.Interop.Excel.dll contains native code and mono can't
run it. The assembly was probably created by Managed C++". 

Thank you

<table><td width=650 align="left"><br><br><br><br><br><br><br><br><font color=red style="Verdana">ADVERTENCIA:</font><br><i><font style="Verdana" size=1>"El contenido de la presente comunicacion y en su caso, sus anexos, tiene caracter meramente informativo sin que represente, en ningun caso, oferta, aceptacion u opinion vinculantes para GAMESA AERONAUTICA, S.A, Sociedad Unipersonal, o cualesquiera de sus filiales, salvo que asi se indique expresamente en documento aparte suscrito por persona con facultades suficientes. Esta comunicacion esta dirigida exclusivamente a su destinatario y puede contener informacion privada y confidencial. GAMESA AERONAUTICA, S.A, Sociedad Unipersonal no asumira obligacion alguna, ni ejecutara ordenes, encargos o pedidos recibidos y/o enviados por correo electronico."</i></font></td></table>



<table><td width=650 align="left"><font color=red style="Verdana">DISCLAIMER</font><br><i><font style="Verdana" size=1>"The content of the present communication, and its annexes, is for informational purposes only and does not in any case constitute a binding offer, acceptance or opinion for  GAMESA AERONAUTICA, S.A, Sociedad Unipersonal,  or any of its subsidiaries unless so set forth in separate document subscribed by a representative of the company with sufficient faculties to do so.
This message may contain private and confidential information and is directed exclusively to its addressee. GAMESA AERONAUTICA, S.A, Sociedad Unipersonal will not assume any obligation, nor execute orders or mandates received or sent  by electronic mail."
</i></font></td></table>



More information about the Mono-devel-list mailing list