Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Jan 2004
    Location
    Mount Prospect, Illinois
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ConvertNumbersToText vs Page and Section Breaks (all)

    I've had code running for a while that uses
    ActiveDocument.ConvertNumbersToText
    to get around the problem that Acrobat 5 and 6 (but not 7) ignores the automatic numbers on paragraphs it turns into bookmarks.

    Little did I know that if your paragraph starts with a page break or section break, i.e.
    <code>
    -----Page Break-----
    2. -> Something Somethinig
    </code>
    It gets changed by the above code to
    <code>
    2.->-----------Page Break-------------
    Something Something
    </code>
    And it's worse with Section Breaks -- you get two numbers: one before the section break, one where you meant to have it!

    I try to get people to use the Page Break Before attribute on the paragraph, but they seem to like that evil page break. And sometimes, you just have to use a section break.
    My code is now going to have to sneak through the document, find page breaks and section breaks in numbered paragraphs, drop in a hidden paragraph mark after the break, and change the style to something not numbered. Bleah.

    Thanks for letting me vent,
    Joel

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

    Re: ConvertNumbersToText vs Page and Section Breaks (all)

    > Thanks for letting me vent,

    Thanks for venting so constructively, it might help someone else one day.

    StuartR

Posting Permissions

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