Re: Field codes: MergeField field RTF format problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Just a couiple of guesses. Word 2003 could be trying to cope with the possibility that some fields (particularly INCLUDETEXT and AUTOTEXT) might insert a section break and the \sectd is there to try to re-impose the section formatting that existed prior to the field. Or it may be something to do with the possibility that a MERGEFIELD might insert RTL text into an otherwise LTR paragraph (or vice versa).

I have to say I've only looked at the RTF encoding to try to understand or solve very specific problems so do not have good instincts as to why you might need a \sectd.
--
Peter Jamieson
http://tips.pjmsn.me.uk

"Amdious" <Amdious@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:9F109493-7679-4A16-8229-7308C1EF05CB@xxxxxxxxxxxxxxxx
Hello,
I'm trying to figure out why something changed from Word 97 to Word 2003.
I'm inserting a basic MergeField into a Word .doc file contained within a
formatted line.

ie.
Why does MergeField «TEST» Kill the tab in WordPad

I have a left indent before the "Why" so I get a \li720 for the format of
"Why does..." and when I insert the «TEST» mergefield in appends a \sectd to
the end of the field keyword section that terminates the formatting and if I
open the file in WordPad the left indent is removed.

ie.

Why does MergeField «TEST» Kill the tab in WordPad


It's simple enough to reproduce by creating a new file, move the left indent
margin to the right, write some words, insert the MergeField write more
words, then save the file as RTF. Open the file in WordPad and the \liN will
not be recognized. I tried the same thing in Word 97 and the \sectd is NOT
applied to the end of the MergeField. I believe Office 2000 will not apply
the \sectd either. The file looks fine in Word, but not in WordPad. I'm
guessing the \sectd was applied on purpose, but I need to know why and how to
have it removed such that I can retain the line formatting.

Thank you in advance.

.



Relevant Pages

  • Re: Opening documents
    ... Wordpad doesn't support advanced formatting features. ... these programes the same trouble appears.. ... You will probably find the internet cafe has the program to open the file ...
    (microsoft.public.windowsxp.newusers)
  • Re: Compatiblity Options: Saving Files From MS Word 2003 to 2002
    ... The orginal files were typed & saved in WORDPAD on my old WIN 98 pc. ... I was told that I will have to UNINSTALL this Trial Version before installing ... The retailer warned me that I MIGHT lose my formatting, but more than likely, ... compatibility set to the version in which they were created; ...
    (microsoft.public.word.docmanagement)
  • Re: Mail Merge and Incorrect Formatting
    ... "macropod" wrote: ... To control percentage formatting in Word, add a formula and numeric picture switch to the mergefield. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Mail Merge and Incorrect Formatting
    ... To control percentage formatting in Word, add a formula and numeric picture switch to the mergefield. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Numbers wont merge as formatted in Word 2007
    ... Mailmerge Number & Currency Formatting ... add a numeric picture switch to the mergefield. ...
    (microsoft.public.word.mailmerge.fields)