Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Insert x of y as footer in word

Insert x of y as footer in word

Scheduled Pinned Locked Moved C / C++ / MFC
c++announcement
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sachinpatole
    wrote on last edited by
    #1

    I have automated MS word using VC++(MFC) version 6.0 . I create a MS Word Document. In this document i want to insert in the footer "2 of 12" format. Where 2 is the page number and 12 is the total number of pages. Please provide the solution for the same. Thanking you.

    D 1 Reply Last reply
    0
    • S Sachinpatole

      I have automated MS word using VC++(MFC) version 6.0 . I create a MS Word Document. In this document i want to insert in the footer "2 of 12" format. Where 2 is the page number and 12 is the total number of pages. Please provide the solution for the same. Thanking you.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Sachinpatole wrote:

      In this document i want to insert in the footer "2 of 12" format.

      I think it's something like: { PAGE } of { NUMPAGES }


      "Take only what you need and leave the land as you found it." - Native American Proverb

      S 1 Reply Last reply
      0
      • D David Crow

        Sachinpatole wrote:

        In this document i want to insert in the footer "2 of 12" format.

        I think it's something like: { PAGE } of { NUMPAGES }


        "Take only what you need and leave the land as you found it." - Native American Proverb

        S Offline
        S Offline
        Sachinpatole
        wrote on last edited by
        #3

        Yes, I want to display (PAGE) of (NUMPAGES). How can i do it? Pls reply Thankx

        D 1 Reply Last reply
        0
        • S Sachinpatole

          Yes, I want to display (PAGE) of (NUMPAGES). How can i do it? Pls reply Thankx

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Sachinpatole wrote:

          How can i do it?

          I already showed you. Did you try my suggestion?


          "Take only what you need and leave the land as you found it." - Native American Proverb

          S 1 Reply Last reply
          0
          • D David Crow

            Sachinpatole wrote:

            How can i do it?

            I already showed you. Did you try my suggestion?


            "Take only what you need and leave the land as you found it." - Native American Proverb

            S Offline
            S Offline
            Sachinpatole
            wrote on last edited by
            #5

            I didnt get you. Will you please resend me the suggestion. Basically i want to display the footer as "3 of 5" where 3 is the page number and 5 is the total number of pages. I have to achieve this in my VC++ 6.0 (MFC) code where i have created the word document using automation. I have to set the footer as above mentioned, in the MS Word document created through automation. Please do the needful at the earliest. Thanking you

            D 1 Reply Last reply
            0
            • S Sachinpatole

              I didnt get you. Will you please resend me the suggestion. Basically i want to display the footer as "3 of 5" where 3 is the page number and 5 is the total number of pages. I have to achieve this in my VC++ 6.0 (MFC) code where i have created the word document using automation. I have to set the footer as above mentioned, in the MS Word document created through automation. Please do the needful at the earliest. Thanking you

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Sachinpatole wrote:

              Will you please resend me the suggestion.

              See here.


              "Take only what you need and leave the land as you found it." - Native American Proverb

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups