locked
i got COM exception when i work with Excell RRS feed

  • Question

  • hi

    i have WinForm C# program that work excellent with Excell 2010

    now i installed the Excell 2012 and i got this error: Exception from HRESULT: 0x800A03EC

    how to force my program to work with all types of Excell (2007,2010,2012...)

    thanks in advance

    Thursday, December 13, 2012 8:55 AM

Answers

  • Hi,

    If you're not hung on Excel automation, have a look at ClosedXML. This is an OpenXML library, so it's not bound to a specific Excel version.

    ClosedXML makes it easier for developers to create Excel 2007/2010 files. It provides a nice object oriented way to manipulate the files (similar to VBA) without dealing with the hassles of XML Documents. It can be used by any .NET language like C# and Visual Basic (VB).

    Hope this helps


    Please mark the best replies as answers
    Blog: bloggingabout.net/blogs/rick
    Twitter: @rickvdbosch

    • Marked as answer by E_gold Sunday, December 16, 2012 7:38 AM
    Thursday, December 13, 2012 9:36 AM

All replies

  • At least triple post...

    http://social.msdn.microsoft.com/Forums/en-GB/csharplanguage/thread/9209a4be-162c-4c91-b462-7f9353ca2521

    http://social.msdn.microsoft.com/Forums/en-GB/winforms/thread/9143f0a6-c602-4227-ac58-42aa9356cdfd

    Regards,

      Thorsten

    Thursday, December 13, 2012 8:58 AM
  • Hi,

    If you're not hung on Excel automation, have a look at ClosedXML. This is an OpenXML library, so it's not bound to a specific Excel version.

    ClosedXML makes it easier for developers to create Excel 2007/2010 files. It provides a nice object oriented way to manipulate the files (similar to VBA) without dealing with the hassles of XML Documents. It can be used by any .NET language like C# and Visual Basic (VB).

    Hope this helps


    Please mark the best replies as answers
    Blog: bloggingabout.net/blogs/rick
    Twitter: @rickvdbosch

    • Marked as answer by E_gold Sunday, December 16, 2012 7:38 AM
    Thursday, December 13, 2012 9:36 AM
  •  

    i try CloseXML and its work excellent for me.

    Does he remain free ?

    Sunday, December 16, 2012 7:54 AM
  • Hi E_gold,

    Licence here:

    http://closedxml.codeplex.com/license 


    Bob Shen
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, December 17, 2012 5:17 AM
    Moderator