Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Hi everyone,
I have a Dutch version of Word 2003, and I work with Dutch texts in Dutch documents, in which the language is set to Dutch. I insert a text form field with the type set to Date and the Date format to "d MMMM", protect the form and type 6-6 in the field. I press the tab key. The field result is "6 June". It's English! What can I possibly do to retrieve Dutch dates? Thank you, Cooz |
#2
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
With the form unprotected, format the form field with the Dutch Language -
Tools Language. Then update the field. The display will adopt the settings from the Windows Regional settings Long Date format for that language. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Cooz wrote: Hi everyone, I have a Dutch version of Word 2003, and I work with Dutch texts in Dutch documents, in which the language is set to Dutch. I insert a text form field with the type set to Date and the Date format to "d MMMM", protect the form and type 6-6 in the field. I press the tab key. The field result is "6 June". It's English! What can I possibly do to retrieve Dutch dates? Thank you, Cooz |
#3
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
I had a look at this a few months ago.At that time I thought that
a. the language used to display these dates is the "Primary Editing language" that is set in the Office Language Settings. b. the language settings in Control Panel regional options, the language of the paragraph/style, and the language currently used for input do not seem to affect it at all. (With ordinary fields (e.g. REF fields) date formatting does take account of the language of the text, but attempting to apply a date format switch within the FORMTEXT field makes no difference.) So it is worth checking that. However, since it sounds as if your entire system is set up for Dutch use, the "Primary Editing language" will also be Dutch and my hypothesis will be wrong. If so, I'm not sure I will be able to find a solution, but let me know. I may only have looked at Word 2007. Groetjes, Peter Jamieson http://tips.pjmsn.me.uk Visit Londinium at http://www.ralphwatson.tv Cooz wrote: Hi everyone, I have a Dutch version of Word 2003, and I work with Dutch texts in Dutch documents, in which the language is set to Dutch. I insert a text form field with the type set to Date and the Date format to "d MMMM", protect the form and type 6-6 in the field. I press the tab key. The field result is "6 June". It's English! What can I possibly do to retrieve Dutch dates? Thank you, Cooz |
#4
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Hi Graham,
It's been a while - busy me. Yep, that is the obvious solution, but it doesn't seem to work. When I applied your suggestion, I found out that the form fields already were formatted as Dutch. I updated them, and it doesn't make any difference. The Windows Regional settings are correct, for example "donderdag 24 september 2009" for today. However, I just tested your suggestion on my own laptop - and not on a machine of the company that I'm creating templates for - and it worked fine. Can this company have forced any policy or setting that makes my form fields display English dates? Any suggestions? Thank you, once more, Cooz "Graham Mayor" wrote: With the form unprotected, format the form field with the Dutch Language - Tools Language. Then update the field. The display will adopt the settings from the Windows Regional settings Long Date format for that language. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Cooz wrote: Hi everyone, I have a Dutch version of Word 2003, and I work with Dutch texts in Dutch documents, in which the language is set to Dutch. I insert a text form field with the type set to Date and the Date format to "d MMMM", protect the form and type 6-6 in the field. I press the tab key. The field result is "6 June". It's English! What can I possibly do to retrieve Dutch dates? Thank you, Cooz |
#5
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Hi Peter,
I take it that with "Primary Editing language" you mean the "language that defines the default behavior in Microsoft Office applications" (Start | All Programs | Microsoft Office Microsoft Office Tools Microsoft Office 2003 Language Settings | tab "Enabled Languages"). That's indeed the one that spoils the form field behavior. Whenever I set this option to English, date format fields in Word spit out the English format, no matter what else is defined language-wise in your Word documents. Unfortunately the company that I work for doesn't make this option available to its users - but my laptop does. I will have to find some IT boss over here that can access this setting - and change it. Thank you, Cooz "Peter Jamieson" wrote: I had a look at this a few months ago.At that time I thought that a. the language used to display these dates is the "Primary Editing language" that is set in the Office Language Settings. b. the language settings in Control Panel regional options, the language of the paragraph/style, and the language currently used for input do not seem to affect it at all. (With ordinary fields (e.g. REF fields) date formatting does take account of the language of the text, but attempting to apply a date format switch within the FORMTEXT field makes no difference.) So it is worth checking that. However, since it sounds as if your entire system is set up for Dutch use, the "Primary Editing language" will also be Dutch and my hypothesis will be wrong. If so, I'm not sure I will be able to find a solution, but let me know. I may only have looked at Word 2007. Groetjes, Peter Jamieson http://tips.pjmsn.me.uk Visit Londinium at http://www.ralphwatson.tv Cooz wrote: Hi everyone, I have a Dutch version of Word 2003, and I work with Dutch texts in Dutch documents, in which the language is set to Dutch. I insert a text form field with the type set to Date and the Date format to "d MMMM", protect the form and type 6-6 in the field. I press the tab key. The field result is "6 June". It's English! What can I possibly do to retrieve Dutch dates? Thank you, Cooz |
#6
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
If you can use macros with your form (I saw your reply to Peter) there is a
workaround that I posted in another forum yesterday that you can apply: In the following example, the date field is Text1 and the default format is configured as "d MMMM yyyy" or "dddd, d MMMM yyyy" in the field properties. The two macros are run on exit and entry to the field as their names imply. The entry macro clears any date text from the field and prompts for the date in the format "DD/MM/YY". If the date is entered in the field in this format, the exit macro formats the field in the indicated language in the format selected in the field properties. I have inserted both Dutch (active) and Greek (inactive) to demonstrate that it does in fact work. The entry macro is not essential as long as you remember to clear the field and type the date in the format DD/MM/YY before tabbing out of the field. Sub DateOnExit() With ActiveDocument.FormFields("text1") .Range.LanguageID = wdDutch '.Range.LanguageID = wdGreek .Result = .Result End With End Sub Sub DateOnEntry() ActiveDocument.FormFields("text1").Result = "" MsgBox "Enter date in the format 'DD/MM/YY'" End Sub -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Cooz wrote: Hi Graham, It's been a while - busy me. Yep, that is the obvious solution, but it doesn't seem to work. When I applied your suggestion, I found out that the form fields already were formatted as Dutch. I updated them, and it doesn't make any difference. The Windows Regional settings are correct, for example "donderdag 24 september 2009" for today. However, I just tested your suggestion on my own laptop - and not on a machine of the company that I'm creating templates for - and it worked fine. Can this company have forced any policy or setting that makes my form fields display English dates? Any suggestions? Thank you, once more, Cooz "Graham Mayor" wrote: With the form unprotected, format the form field with the Dutch Language - Tools Language. Then update the field. The display will adopt the settings from the Windows Regional settings Long Date format for that language. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Cooz wrote: Hi everyone, I have a Dutch version of Word 2003, and I work with Dutch texts in Dutch documents, in which the language is set to Dutch. I insert a text form field with the type set to Date and the Date format to "d MMMM", protect the form and type 6-6 in the field. I press the tab key. The field result is "6 June". It's English! What can I possibly do to retrieve Dutch dates? Thank you, Cooz |
#7
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Hi Graham,
In fact I do use macros with the form. Company policy is that the resulting document must be available to the user in its entirety, so the macro in the last form field that the user exits replaces the form fields with their values and removes the protection. Since the date format is always "d MMMM yyyy", I have added code that replaces any English months with their Dutch translations, which yields the desired result. It's another workaround. Thank you for your cooperation, Cooz "Graham Mayor" wrote: If you can use macros with your form (I saw your reply to Peter) there is a workaround that I posted in another forum yesterday that you can apply: In the following example, the date field is Text1 and the default format is configured as "d MMMM yyyy" or "dddd, d MMMM yyyy" in the field properties. The two macros are run on exit and entry to the field as their names imply. The entry macro clears any date text from the field and prompts for the date in the format "DD/MM/YY". If the date is entered in the field in this format, the exit macro formats the field in the indicated language in the format selected in the field properties. I have inserted both Dutch (active) and Greek (inactive) to demonstrate that it does in fact work. The entry macro is not essential as long as you remember to clear the field and type the date in the format DD/MM/YY before tabbing out of the field. Sub DateOnExit() With ActiveDocument.FormFields("text1") .Range.LanguageID = wdDutch '.Range.LanguageID = wdGreek .Result = .Result End With End Sub Sub DateOnEntry() ActiveDocument.FormFields("text1").Result = "" MsgBox "Enter date in the format 'DD/MM/YY'" End Sub -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Cooz wrote: Hi Graham, It's been a while - busy me. Yep, that is the obvious solution, but it doesn't seem to work. When I applied your suggestion, I found out that the form fields already were formatted as Dutch. I updated them, and it doesn't make any difference. The Windows Regional settings are correct, for example "donderdag 24 september 2009" for today. However, I just tested your suggestion on my own laptop - and not on a machine of the company that I'm creating templates for - and it worked fine. Can this company have forced any policy or setting that makes my form fields display English dates? Any suggestions? Thank you, once more, Cooz "Graham Mayor" wrote: With the form unprotected, format the form field with the Dutch Language - Tools Language. Then update the field. The display will adopt the settings from the Windows Regional settings Long Date format for that language. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Cooz wrote: Hi everyone, I have a Dutch version of Word 2003, and I work with Dutch texts in Dutch documents, in which the language is set to Dutch. I insert a text form field with the type set to Date and the Date format to "d MMMM", protect the form and type 6-6 in the field. I press the tab key. The field result is "6 June". It's English! What can I possibly do to retrieve Dutch dates? Thank you, Cooz |
#8
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Looking a bit further, the Primary Editing Language appears to be the
one defined in Application.LanguageSettings.LanguageID(msoLanguag eIDInstall) but this is a read-only value. If you can modify the registry, you can certainly set the value in the following item - this is for Word 2007, for the current user HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\C ommon\LanguageResources\InstallLanguage and ensure that there is an entry to the list in HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\C ommon\LanguageResources\EnabledLanguages e.g. for Dutch (Netherlands), use 1043 decimal. (I think Word will automatically add the Primary Editing Language to that list but haven't looked that hard). That said, a. it's quite possible you can't access the registry either on the Pc where you do not have the Office Language settings tool b. I don't know if you can set the language for all users on the system via the LOCAL_MACHINE registry hive, or whether you would even want to. Peter Jamieson http://tips.pjmsn.me.uk Visit Londinium at http://www.ralphwatson.tv Cooz wrote: Hi Peter, I take it that with "Primary Editing language" you mean the "language that defines the default behavior in Microsoft Office applications" (Start | All Programs | Microsoft Office Microsoft Office Tools Microsoft Office 2003 Language Settings | tab "Enabled Languages"). That's indeed the one that spoils the form field behavior. Whenever I set this option to English, date format fields in Word spit out the English format, no matter what else is defined language-wise in your Word documents. Unfortunately the company that I work for doesn't make this option available to its users - but my laptop does. I will have to find some IT boss over here that can access this setting - and change it. Thank you, Cooz "Peter Jamieson" wrote: I had a look at this a few months ago.At that time I thought that a. the language used to display these dates is the "Primary Editing language" that is set in the Office Language Settings. b. the language settings in Control Panel regional options, the language of the paragraph/style, and the language currently used for input do not seem to affect it at all. (With ordinary fields (e.g. REF fields) date formatting does take account of the language of the text, but attempting to apply a date format switch within the FORMTEXT field makes no difference.) So it is worth checking that. However, since it sounds as if your entire system is set up for Dutch use, the "Primary Editing language" will also be Dutch and my hypothesis will be wrong. If so, I'm not sure I will be able to find a solution, but let me know. I may only have looked at Word 2007. Groetjes, Peter Jamieson http://tips.pjmsn.me.uk Visit Londinium at http://www.ralphwatson.tv Cooz wrote: Hi everyone, I have a Dutch version of Word 2003, and I work with Dutch texts in Dutch documents, in which the language is set to Dutch. I insert a text form field with the type set to Date and the Date format to "d MMMM", protect the form and type 6-6 in the field. I press the tab key. The field result is "6 June". It's English! What can I possibly do to retrieve Dutch dates? Thank you, Cooz |
#9
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Hi Peter,
It's a bit of a shame that you have to dig this deep to set the language on a form field. I'm applying a workaround that replaces English months with their Dutch translations when the user exits the last form field. This is somewhat easier, and it works - it doesn't solve the problem, though. Thank you for cooperating, Cooz "Peter Jamieson" wrote: Looking a bit further, the Primary Editing Language appears to be the one defined in Application.LanguageSettings.LanguageID(msoLanguag eIDInstall) but this is a read-only value. If you can modify the registry, you can certainly set the value in the following item - this is for Word 2007, for the current user HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\C ommon\LanguageResources\InstallLanguage and ensure that there is an entry to the list in HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\C ommon\LanguageResources\EnabledLanguages e.g. for Dutch (Netherlands), use 1043 decimal. (I think Word will automatically add the Primary Editing Language to that list but haven't looked that hard). That said, a. it's quite possible you can't access the registry either on the Pc where you do not have the Office Language settings tool b. I don't know if you can set the language for all users on the system via the LOCAL_MACHINE registry hive, or whether you would even want to. Peter Jamieson http://tips.pjmsn.me.uk Visit Londinium at http://www.ralphwatson.tv Cooz wrote: Hi Peter, I take it that with "Primary Editing language" you mean the "language that defines the default behavior in Microsoft Office applications" (Start | All Programs | Microsoft Office Microsoft Office Tools Microsoft Office 2003 Language Settings | tab "Enabled Languages"). That's indeed the one that spoils the form field behavior. Whenever I set this option to English, date format fields in Word spit out the English format, no matter what else is defined language-wise in your Word documents. Unfortunately the company that I work for doesn't make this option available to its users - but my laptop does. I will have to find some IT boss over here that can access this setting - and change it. Thank you, Cooz "Peter Jamieson" wrote: I had a look at this a few months ago.At that time I thought that a. the language used to display these dates is the "Primary Editing language" that is set in the Office Language Settings. b. the language settings in Control Panel regional options, the language of the paragraph/style, and the language currently used for input do not seem to affect it at all. (With ordinary fields (e.g. REF fields) date formatting does take account of the language of the text, but attempting to apply a date format switch within the FORMTEXT field makes no difference.) So it is worth checking that. However, since it sounds as if your entire system is set up for Dutch use, the "Primary Editing language" will also be Dutch and my hypothesis will be wrong. If so, I'm not sure I will be able to find a solution, but let me know. I may only have looked at Word 2007. Groetjes, Peter Jamieson http://tips.pjmsn.me.uk Visit Londinium at http://www.ralphwatson.tv Cooz wrote: Hi everyone, I have a Dutch version of Word 2003, and I work with Dutch texts in Dutch documents, in which the language is set to Dutch. I insert a text form field with the type set to Date and the Date format to "d MMMM", protect the form and type 6-6 in the field. I press the tab key. The field result is "6 June". It's English! What can I possibly do to retrieve Dutch dates? Thank you, Cooz |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Form Fields, Protect Form, Mail Merge, Templates vs Documents | Microsoft Word Help | |||
Auto fill Form Fields from previous Variable fields? | Microsoft Word Help | |||
MS Word form fields versus mail merge fields | Mailmerge | |||
Form fields versus mail merge fields | Microsoft Word Help | |||
mail merge some fields leave other as form fields | Mailmerge |