none
Obtain page numbers for all track changes, or does track changes exist on this page RRS feed

  • Question

  • Obtain page numbers for all track changes, or does track changes exist on this page

    The request is:

    an original document contains track changes

    Create a new document that contains the original documents track changes only.

    The page is to display the orginial whole page with track changes – this is easier for the users to work with & recognise the document contents.

    This is my pseudocode:

    1. Create a copy of the original document
    2. Start from the start of the doc
    3. Goto normal view
    4. Obtain the revision total count
    5. For each revision
        6. Goto and select the revision
        7. Obtain the revisions section and page number
        8. Calculate the selection
        9. eg If the track changes selection is over 2 or 
           more pages
        10. Obtain the correct page numbers and section number
        11. and store in array
    12. until all revisions in document
    13.Array contains section and page numbers
    14.Use array to work out & delete pages between track changes pages

    When I run and test my code -

    The results are:

    Incorrect section and page numbers in the array ie track changes don’t exist on these pages however inserted page/section number into the array

    note I understand how pagination works.

    Stepping back the above approach seems complicated.

    Now that Ive had time to think an alternative method maybe – although simpler may take longer to process -

    1. Create a copy of the original document
    2. Start from the start of the doc
    3. For each page of the document
        4. If revisions exist on this page
        5. Yes – leave page
        6. No – delete page
    7. until all revisions in document
    

    challenges -

    very long documents - may run into memory issues

    would i have to check and compare current page against revision.count. or total

    Do you have alternative suggestions to best achieve this?

    Thank you

    dd



    • Edited by dd_ Monday, February 25, 2013 11:59 PM
    Monday, February 25, 2013 11:53 PM

Answers

All replies