title: Error while trying to create an excel file in C#
body: <p>Good morning,
  I'm trying to create Excel file in C#, I looked to the way to do it, and I found a tutorial, here is the code I tried:</p>
  
  <pre><code>        Microsoft.Office.Interop.Excel.Application excel;  
          Microsoft.Office.Interop.Excel.Workbook worKbooK;
          Microsoft.Office.Interop.Excel.Worksheet worksheet;  
          Microsoft.Office.Interop.Excel.Range celLrangE;
  
          excel = new Microsoft.Office.Interop.Excel.Application();
          excel.Visible = false;
          excel.DisplayAlerts = false;  
  </code></pre>
  
  <p>Well, I have this error on initializing the variable <code>excel</code> </p>
  
  <pre><code>COM object with CLSID '{00020819-0000-0000-C000-000000000046}' cannot be created due to the following error: Class not registered .
  </code></pre>
  
  <p>I searched for this error, what I found is solution to problems in cases, but none has the problem in Excel operations, so ... ?</p>
  
  <p>PS: I'm creating an application for Windows Mobile 6.5, but I think it's supposed to work on it, if it works of course.</p>
  
  <p><strong>For the vote down hungers</strong>, well ... unleash yourselves, I can't stop you :) but believe me, I tried a lot, there's so many ways to create Excel files, but whatever I try, the same error is summoning, I think it's not the problem of library, or code, but something else I can't find.</p>
  
  <p>Thanks in advance !</p>