#1
|
|||
|
|||
Heading1 does not convert to Kop1
We have a template, in this template we make use of Heading 1, Heading 2, heading 3, etc.
In the Heardertext we've insert Field StyleRef heading 1. This works as Word is in UK language. Some have Word set to NL language, but then the headertext says, ERROR, and we have to manually change the Insert Field to Kop1.. This is not wanted when working in groups where different people work with MS-Word in UK and MS-Word in NL. How can we solve this problem without asking everyone to change MS-Word to UK language? Last edited by boesh; 06-08-2010 at 02:58 PM. |
#2
|
|||
|
|||
When you open a doc in a different language version of Word than was used to create the doc, Word does not translate built-in style names to the language in use.
To work around this problem:
Please let me know if that works |
#3
|
|||
|
|||
Yes this works, it is not the most ideal solution but i guess there is nothing better.
THNX !! |
#4
|
|||
|
|||
You can use the IF field to have Word determine which to use.
Use other fields to create the expression. I used the document property 'Category': If you put the word English in the Category property of the doc, then the STYLEREF will be Heading 1, otherwise Kop 1: You cannot type in the curly braces. Type Ctrl+F9 to create them. {IF {DOCPROPERTY Category}=”English” {STYLEREF “Heading 1”} {STYLEREF “Kop 1”}} You can use something other than a doc property, hopefully this will give you some ideas. |
#5
|
|||
|
|||
Where should i enter that line of code?
|
#6
|
|||
|
|||
In your document, press ALT+F9 to display field codes. You should be able to see your STYLEREF now. Replace it with this one. Remember, create the pairs of braces using Ctrl+F9. When done, press ALT+F9 again.
Since I don't have access to another language, I can't create a Kop 1 in my doc, but I did test that I get my Heading 1 text if the word English is in the Category property, and if it isn't, then I get the standard error that it can't find style Kop 1. |
#7
|
|||
|
|||
One more question to make things sure.. where and what do you mean with "Category Property"?
|
#8
|
|||
|
|||
One of the properties a document can have is called Category.
In Word 2007, you can access it this way: Microsoft Office button > point to Prepare and choose Properties. Type the word English in the Category box near the top of the window. Of course, if ithere would be fewer docs to edit, you reverse the code a bit... {IF {DOCPROPERTY Category}=”NL” {STYLEREF “Kop 1”} {STYLEREF “Heading 1”}} In this case, if will use Kop 1 if you have NL in the Category property, otherwise it will use Heading 1. |
#9
|
|||
|
|||
No won't work. Situation is, I have MS-Word English version and Dutch language installed, ik make a document and all is well (the header reconises "Kop 1", I save the document. Then some one else opens the same document with MS-Word an dhas English as interface language then teh header goes wrong 'cause Kop 1 is not reconized. So that person has to adjust the header fiels and change Kop 1 to Heading 1. Then saves the document, Iand when i open the document i have ti change Heading 1 to Kop 1..
So i need a varaible that reconnises which interface language is being used and based on that selecte either Heading 1 of Kop 1. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convert PDF to PPT? | Hinmini | PowerPoint | 1 | 10-28-2011 07:38 PM |
Convert JML files | Lundberg | Word | 5 | 09-11-2010 11:05 AM |
help to convert swf to avi for displaying in ppt? | Frederick | PowerPoint | 1 | 09-13-2009 08:10 PM |
convert | golden039 | Word | 0 | 08-16-2009 05:48 PM |
Convert Webmail to Outlook? | barackrocksall | Outlook | 1 | 04-22-2009 03:22 PM |