Results 1 to 6 of 6
  1. #1
    Lounger
    Join Date
    Jul 2002
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Word2k: Header Turns to Code (2000 sp?)

    First Post, and it's going to be a bit less than precise, since I'm not a heavy Word user myself, and I only saw the problem once. It's a friend's problem, and I'll have to revisit to see it again.

    The user starts each doc of a certain type by opening a template containing only a header. Said header is a horizontal grey rule, his name and the date. (He SavesAs to preserve the template on his first save after starting writing. I think the template's a .DOT, and he saves as .DOC. Weird, I know, but this has worked for months.

    Problem: Each time the blank template is opened now, the carefully-composed 1-line header has turned to the field code (??), full of BASIC-ish stuff). This prints as the garbage it is.

    He's got most of the header stored somewhere in the floating H-F toolbar, and ^A and a pasteover has him a few seconds away from a clean header. The doc will then print fine. The header box, though, stays at two lines, if that matters.

    Here's the kicker. Renaming normal.dot AND MANUALLY RECREATING THE TEMPLATE under another name produces exactly the same results.

    Suggestions on where to look, folks?

  2. #2
    Super Moderator
    Join Date
    Aug 2001
    Location
    Evergreen, CO, USA
    Posts
    6,623
    Thanks
    3
    Thanked 60 Times in 60 Posts

    Re: Word2k: Header Turns to Code (2000 sp?)

    It sounds as if he may have view field codes on - though printing the document should revert to the value of the field. How is he starting the document - if he actually opens the template and edits it each time that's a recipe for problems. If on the other hand he does a File/New using the template then he should get a new document with the header, but named Document1 or something similar.
    Wendell

  3. #3
    Lounger
    Join Date
    Jul 2002
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word2k: Header Turns to Code (2000 sp?)

    I saw him start a doc two ways.

    1. Open dot, type save as doc (weird).

    2. With the template wizard - pick template, go. Then normal.dot was renamed, and the template recreated with a new name, and picked. Problem still there. I'll ask him to look for reveal^H^H (slaps wrist) VisibleFieldCodes=on. That's the tools|options|show|check field codes box, yes?

    For my own education:

    o You only get the template wizard with a file|new? Any other ways to say open this using that.dot?

    o What are the most common fields a user might create himself, deliberately or by accident, other than head/footer?

    o There's no setting that would show codes in headers and not in other fields, right?

    o What a useful macro show_codes would be. Is it canned anywhere?

    And thank you for the guess. Sorry I'm not more precise.

  4. #4
    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: Word2k: Header Turns to Code (2000 sp?)

    > 1. Open dot, type save as doc (weird).

    First of all, this must be Word 2002 (Office XP) because before Word 2002, you could only save a template as another template; you could not save it as a document. There probably was a good reason for this. <img src=/S/grin.gif border=0 alt=grin width=15 height=15> I don't know why they changed it.

    > What are the most common fields a user might create himself, deliberately or by accident, other than head/footer?

    Well, okay, let me deal with that last part first. In Word parlance, the header and footer are not fields, they are parts of a section of a document that appear in separate panes (as in Window panes). You can insert many different kinds of fields into headers and footers (and elsewhere), the more common ones being page numbers, page counts (such as the Y in Page X of Y), dates, the name of the file, the name or initials of the user, and so forth. While it's hard to insert these accidentally, there often are nice sounding aliases or convenient buttons that obscure the fact that this information is populated into the document using fields. Making gray shading for field codes "always" visible helps in spotting them.

    As for what might be corrupting in the problem document/template, what is this ruler thing? Is it a picture? There are many ways to insert graphics into a document, including embedding them as bits, embedding them as blobs of data that must be rendered by another application using OLE magic, linking them (inserting only a thumbnail placeholder and using OLE behind the scenes), and probably others that slip my mind.

    Anyway, I think you probably should poke at it a bit more or get your friend to post it here, because it's going to be very hard to diagnose without hands-on. Hope this helps.

    (Last but not least, almost anything in Word can be saved as AutoText. It could be that this is how he is inserting it from the Header/Footer toolbar. AutoText generally lives in Normal.dot, so that would explain why it gets lost when Normal.dot is renamed. When saving AutoText, it is very useful to save a trailing paragraph mark to capture all of the formatting for that paragraph; otherwise, inserting it into a new context could lead to bad results.)

  5. #5
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Word2k: Header Turns to Code (2000 sp?)

    It sounds to me like a setting in the options.
    Check under Tools > Options > View > Field Codes. If this is ticked then any fields in the document will display as the field code rather than the result.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  6. #6
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,054
    Thanks
    2
    Thanked 417 Times in 346 Posts

    Re: Word2k: Header Turns to Code (2000 sp?)

    Hi Frank,

    I addition to what others have said about going into
    Tools|Options|View|Show
    and unchecking the 'Field Codes' option, you might need to go into
    Tools|Options|Print|Include with document
    and uncheck the 'Field Codes' option there too.

    If you double-click on a .dot from within Windows explorer, that will open Word with a new document (.doc) ready for the user to type in. In essence, you get the same result via File|New.

    Perhaps the most common 'other' fields are date-based ones, like {DATE}, {CREATEDATE}, {SAVEDATE} and {PRINTDATE}, and perhaps {USERNAME}, but it all depends on who the user is. You can get an idea of the types of field available via Insert|Field.

    You can toggle individual fields on/off by selecting them and pressing Shift+F9.

    To toggle all fields on/off you can press Ctrl+A (to select the whole document) then press Shift+F9.

    Cheers
    Cheers,

    Paul Edstein
    [MS MVP - Word]

Posting Permissions

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