Results 1 to 7 of 7
  1. #1
    5 Star Lounger st3333ve's Avatar
    Join Date
    May 2003
    Location
    Los Angeles, California, USA
    Posts
    705
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Buggy first tab in paragraph (Word 2002 SP-2)

    I'm getting the same odd behavior with my own documents or if I create a new document using Word's default Normal.dot, so hopefully this is replicable and someone knows the "solution".

    If I set a document's Default Tab Stop to 0.3" and adjust the ParagraphFormat.Left indent of any style (e.g, Body Text) to an amount that is a multiple of 0.3 and is at least 1.2 (in other words, the Default Tab Stop multiplied by 4, or 5, or 6 ...), and if I then try to insert a tab at the start of a paragraph in that style, I get a hidden tab that doesn't appear to move the cursor. Only if I add a 2nd tab does the cursor move over 0.3".

    Checking Asc(Selection.Characters.First.Previous) in the Immediate Window confirms that there's an extra, seemingly non-functional tab there.

    I guessed that maybe some kind of rounding is going on with the tab and indent settings, so that the .LeftIndent I think is 1.2 is actually something like 1.19, with the result that the first tab is simply moving me from 1.19 to 1.2. But I get the same dysfunctional tab behavior if I set the DefaultTabStop and LeftIndent in the Immediate Window using points rather than inches (e.g., a DefaultTabStop of 21.6 and a LeftIndent of 86.4).

    I realize I can (and in many cases I would) set a FirstLineIndent rather than putting a tab as the first character in the paragraph. But in some cases (e.g., putting some sample VB code in a document) it seems more sensible to me to have a series of paragraphs in the same style (or a series of lines separated by line breaks within a single paragraph) with a tab or two at the start of some of the paragraphs (or lines).

    Anybody encountered this and/or know how to deal with it?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Buggy first tab in paragraph (Word 2002 SP-2)

    I can reproduce the error. It must be some obscure internal rounding error, but I can't find anything about it. If you set the default tab stop to 21.61 points (0.30013888...") and the left indent to 86.44 points (1.200555..."), the initial tab becomes visible. This might be a workaround, since the difference between tab stop distances of 21.6 points and 21.61 points tab isn't visible.

  3. #3
    5 Star Lounger st3333ve's Avatar
    Join Date
    May 2003
    Location
    Los Angeles, California, USA
    Posts
    705
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Buggy first tab in paragraph (Word 2002 SP-2)

    Thanks for the input. I'm still steadfastly in denial about the fact that using 0.3" tabs in Word may require a "workaround." A substantial percentage of my WordPerfect documents use 0.3" tabs.

    If anyone reading this thread is using Word 2002 SP-3 or Word 2003, I'd be interested to know if the bug lives on in either of those versions.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Buggy first tab in paragraph (Word 2002 SP-2)

    I used Word 2002 SP-3 to test, with the results reported.

  5. #5
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Buggy first tab in paragraph (Word 2002 SP-2)

    Tested on Word 2003 SP1 - the bug is still there!

    StuartR

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

    Re: Buggy first tab in paragraph (Word 2002 SP-2)

    Is there a reason that you can't use a defined tab for the 0.3'' position and then rely on the default tab stops for any additional tabs?
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  7. #7
    5 Star Lounger st3333ve's Avatar
    Join Date
    May 2003
    Location
    Los Angeles, California, USA
    Posts
    705
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Buggy first tab in paragraph (Word 2002 SP-2)

    Thanks for the responses, gentlemen. Apparently upgrading is not the answer. I guess the folks in Redmond have been too busy coming up with jazzy new features like Smart Tags to spend time on dull old stuff like tabs.

    It had already occurred to me that, if I were to move past the previously-described "denial" phase, setting the initial 0.3" tab for each affected style might be the best workaround.

    Adding a space to the left of the first tab is another possibility, and might be the better workaround where only a few lines were involved. If the lines consist of sample code, I had expected that this approach would throw off the indents if I copied and pasted the code into the VBEditor, but it turns out that's not the case. The VBEditor ignores the extra spaces.

Posting Permissions

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