DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: C# and Excel problems

  1. #1
    GioVAX Guest

    C# and Excel problems


    Hi all,
    I am trying to drive Excel (Office XP) from a C# application. I cannot create
    a workbook, because I receive a COMException with HResult 0x80028018 which,
    roughly translated from Italian, means something like 'old library or format
    not valid'.

    I added reference to Micrsooft Excel 10.0, so I don't expect the format to
    be invalid. The strange thing is that I can create a new workbook regularly
    from a VC++ application.

    Did anybody ever find this problem? I can provide onfiguration info and source
    code if necessary.

    Ciao,
    GioVAX

  2. #2
    Mattias Sjögren Guest

    Re: C# and Excel problems

    GioVAX,

    BUG: "Old Format or Invalid Type Library" Error When Automating Excel
    2002
    http://support.microsoft.com/?kbid=320369



    Mattias

    ===
    Mattias Sjögren [MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/
    Please reply only to the newsgroup.

  3. #3
    Jorge Varona Guest

    Re: C# and Excel problems

    Did you import the type library?

    TlbImp Excel9.olb Excel.dll

    "Mattias Sjögren" <mattias.dont.want.spam@mvps.org> wrote in message
    news:3e397950$1@tnews.web.devx.com...
    > GioVAX,
    >
    > BUG: "Old Format or Invalid Type Library" Error When Automating Excel
    > 2002
    > http://support.microsoft.com/?kbid=320369
    >
    >
    >
    > Mattias
    >
    > ===
    > Mattias Sjögren [MVP] mattias @ mvps.org
    > http://www.msjogren.net/dotnet/
    > Please reply only to the newsgroup.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center