check excel country code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Maik

    check excel country code

    Hi everybody,
    I want to automate an Excel97 application using C#. I use the excel8.olb
    file as COM interface. How can I check the country code of the installed
    Excel application? I know that there is a method
    "LanguageSettin gs.get_Language ID()", but it works with Excel XP.

    regards,
    Maik
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: check excel country code

    Maik,

    You won't be able to get it through automation. I'm not sure if you
    could do this, but I would think that the registry contains information
    about which version is installed. I would check the documentation, or just
    browse the registry to see if there is anything there that can help you.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Maik" <Maik@discussio ns.microsoft.co m> wrote in message
    news:D73F1183-D830-446B-8A7B-E1F798DE0EDE@mi crosoft.com...[color=blue]
    > Hi everybody,
    > I want to automate an Excel97 application using C#. I use the excel8.olb
    > file as COM interface. How can I check the country code of the installed
    > Excel application? I know that there is a method
    > "LanguageSettin gs.get_Language ID()", but it works with Excel XP.
    >
    > regards,
    > Maik[/color]


    Comment

    • Maik

      #3
      Re: check excel country code

      Hi Nicholas,

      I haven't found any saving registry entry to check the country code. There
      is only the possibility to offer different language versions of my
      application.
      I've another question. Does the Excel9.olb file offer a culture info property?

      Comment

      Working...