> Hi Cindy,
>
> I want my user to write a "template" in word and save it as xml. This
> template will later be used for our own mailmerge system.
>
> Therefore if my users open a new document and enters the field
> [ at ]customoername[ at ], the wordml will look like this...
>
> ...<w:p><w:r><w:t>[ at ]customername[ at ]</w:t></w:r>....
>
> This is very easy to open the xml file in our .net-crm application and
> do a search/replace on the variable [ at ]customername[ at ].
>
> But if the user wants to make it bold and by mistake forgets to
> highlight the last [ at ], the wordml will look like this...
>
> <w:rPr><w:b/></w:rPr><w:t>[ at ]customername</w:t></w:r><w:r><w:t>[ at ]</w:t>
>
> Then I will not be able to from my .net-crm application to open the word
> as a tectfile and do a search/replace on the [ at ]customername[ at ], because
> it's now called...
>
> [ at ]customername</w:t></w:r><w:r><w:t>[ at ]
>
> I would like my users to be able to enter a fieldname like [ at ]customernam[ at ]
> in word and no matter what formatting they do on the field, the
> [ at ]customername[ at ] must be intact.
>
> Hope you get what I mean.
>
> :o)
>
> Thanks for still trying to help me out here!!
>
> Mojo
>
> Cindy M -WordMVP- skrev:
>> Hi Mojo,
>> But you see, on my machine the [ at ] signs aren't separated from the rest
>> of the text. Unless I format them differently or use Insert/Symbol. So
>> it would be important for you to show us EXACTLY what the problem is
>> that you're encountering - the WordML you're struggling with.
>>> My point was just to show that the '[ at ]' signs wasn't always together
>>> with the customername. :o)
>>>
>>> Let's say I want to load the xml file into Notepad and do a search
>>> and replace (I don't want to use word to do the search and replace
>>> ... it will be done on a computer that does not have word installed).
>>>
>>> How can I make my own "tags" that will not be messed up by wordml-tags?
>>>
>>> I want my user to create a word doc, type in text and add variables
>>> like [ at ]customername[ at ]. Then my own .net application must open the xml
>>> file and do a search and replace. Therefore the [ at ]customername[ at ] must
>>> stick together.
>>>
>>> Hope you understand what I mean.
>>>
>>> This is a BIG problem for me. :o(
>>>
>>
>> Cindy Meister
>> INTER-Solutions, Switzerland
>>
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
>>
http://www.word.mvps.org>>
>> This reply is posted in the Newsgroup; please post any follow question
>> or reply in the newsgroup and not by e-mail :-)
>>