Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    London, Gtr London, England
    Posts
    416
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Country of the PC (ALL)

    Hi

    What is the best way to check for country when open a word document. I user system.country to set country specific options (e.g. dictionary to use, US/A4 paper size, etc). But it seems my US customers are still getting UK settings. Should I be using something else or should I get my US users to check their settings. I thought that system.country was the correct option to use.

    Select Case System.Country
    Case wdUS
    lOrigin = OIUS
    ActiveDocument.Range.LanguageID = wdEnglishUS
    Case wdCanada
    lOrigin = OICA
    ActiveDocument.Range.LanguageID = wdEnglishCanadian
    Case Else ' Hong Kong/France defaulted to UK for now
    lOrigin = OIUK
    ActiveDocument.Range.LanguageID = wdEnglishUK
    End Select

    Thanks.

    Robie
    Thanks.
    Robie

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Country of the PC (ALL)

    In Word 2003, the property is System.CountryRegion, but oddly System.Country seems to return the same value. As far as I can tell, this is the most convenient way to get the system-level setting. Not sure why your customers are having problems.

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Country of the PC (ALL)

    Are you sure that your US customers have set their regional settings correctly?

  4. #4
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    London, Gtr London, England
    Posts
    416
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Country of the PC (ALL)

    Thanks for the response guys.

    I don't know if the US users have the correct settings or not. I assumed that they would be correct considering ours is set as UK. I will get someone to check out their settings. Is there an easy way to do this? Otherwise I would put some debug statements in my template to see what the return values are for system.Country and system.CountryRegion.

    Let us see what the future brings. <img src=/S/hmmn.gif border=0 alt=hmmn width=15 height=15>

    Robie

    I suppose if the setting is NOT correct then it means I will have to produce two/three different versions of the template (UK, US & Canada).
    Thanks.
    Robie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •