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. Word file

Word file

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelptutorial
12 Posts 6 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.
  • R ramidaJA

    I have got problem. How can I create under application, word file with text, which I want put there. Does anybody now how to do it? Thx

    H Offline
    H Offline
    Hamed Musavi
    wrote on last edited by
    #2

    MS Word's Doc format, as much as I know, is not a free format, so it's not strange that there is not an article about it. However it is possible to use reverse engineering or other hacks to find out the format of the file, and I'll not be surprised if I see some one did that already. Searching the web might help you find the format, after that it's as easy as creating a file with similar format and putting text into true order.

    // "Life is very short and is very fragile also." Yanni
    while (I'm_alive)
    {
    cout<<"I love programming.";
    }

    C R 2 Replies Last reply
    0
    • H Hamed Musavi

      MS Word's Doc format, as much as I know, is not a free format, so it's not strange that there is not an article about it. However it is possible to use reverse engineering or other hacks to find out the format of the file, and I'll not be surprised if I see some one did that already. Searching the web might help you find the format, after that it's as easy as creating a file with similar format and putting text into true order.

      // "Life is very short and is very fragile also." Yanni
      while (I'm_alive)
      {
      cout<<"I love programming.";
      }

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #3

      Hamed Mosavi wrote:

      However it is possible to use reverse engineering

      :~ And what about simply using word automation ?


      Cédric Moonen Software developer
      Charting control [v1.2]

      H 1 Reply Last reply
      0
      • C Cedric Moonen

        Hamed Mosavi wrote:

        However it is possible to use reverse engineering

        :~ And what about simply using word automation ?


        Cédric Moonen Software developer
        Charting control [v1.2]

        H Offline
        H Offline
        Hamed Musavi
        wrote on last edited by
        #4

        That's another solution:) I've never used automation. Does it work in a situation that the end user has not MS Office installed?

        // "Life is very short and is very fragile also." Yanni
        while (I'm_alive)
        {
        cout<<"I love programming.";
        }

        C 1 Reply Last reply
        0
        • R ramidaJA

          I have got problem. How can I create under application, word file with text, which I want put there. Does anybody now how to do it? Thx

          K Offline
          K Offline
          kakan
          wrote on last edited by
          #5

          Apart from what's already said, you might consider to create a RTF-file. A RTF file can be handeled by (almost ?) all word processing programs. I found a specification (1.9) at MS here[^]

          Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

          R 1 Reply Last reply
          0
          • H Hamed Musavi

            That's another solution:) I've never used automation. Does it work in a situation that the end user has not MS Office installed?

            // "Life is very short and is very fragile also." Yanni
            while (I'm_alive)
            {
            cout<<"I love programming.";
            }

            C Offline
            C Offline
            Cedric Moonen
            wrote on last edited by
            #6

            You don't need to have word fully installed but you at least need to install the component.


            Cédric Moonen Software developer
            Charting control [v1.2]

            H D 2 Replies Last reply
            0
            • C Cedric Moonen

              You don't need to have word fully installed but you at least need to install the component.


              Cédric Moonen Software developer
              Charting control [v1.2]

              H Offline
              H Offline
              Hamed Musavi
              wrote on last edited by
              #7

              Cedric Moonen wrote: need to install the component And is it freely available? I mean, can I redistribute the component with my setup for free? or is there license considerations?

              // "Life is very short and is very fragile also." Yanni
              while (I'm_alive)
              {
              cout<<"I love programming.";
              }

              1 Reply Last reply
              0
              • C Cedric Moonen

                You don't need to have word fully installed but you at least need to install the component.


                Cédric Moonen Software developer
                Charting control [v1.2]

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

                Cedric Moonen wrote:

                ...you at least need to install the component.

                How do you do this without also installing Word?


                "A good athlete is the result of a good and worthy opponent." - David Crow

                "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                1 Reply Last reply
                0
                • R ramidaJA

                  I have got problem. How can I create under application, word file with text, which I want put there. Does anybody now how to do it? Thx

                  R Offline
                  R Offline
                  Rilhas
                  wrote on last edited by
                  #9

                  You may consider going looking at the OpenOffice source at http://www.openoffice.org[^]as the project includes the ability to import and export MS Word compatible files. Rilhas

                  R 1 Reply Last reply
                  0
                  • R Rilhas

                    You may consider going looking at the OpenOffice source at http://www.openoffice.org[^]as the project includes the ability to import and export MS Word compatible files. Rilhas

                    R Offline
                    R Offline
                    ramidaJA
                    wrote on last edited by
                    #10

                    Thanks for every body. I found what I need. Greetings :) Ramida

                    1 Reply Last reply
                    0
                    • H Hamed Musavi

                      MS Word's Doc format, as much as I know, is not a free format, so it's not strange that there is not an article about it. However it is possible to use reverse engineering or other hacks to find out the format of the file, and I'll not be surprised if I see some one did that already. Searching the web might help you find the format, after that it's as easy as creating a file with similar format and putting text into true order.

                      // "Life is very short and is very fragile also." Yanni
                      while (I'm_alive)
                      {
                      cout<<"I love programming.";
                      }

                      R Offline
                      R Offline
                      ramidaJA
                      wrote on last edited by
                      #11

                      Thanks for every body. I found what I need. Greetings :) Ramida Ramida

                      1 Reply Last reply
                      0
                      • K kakan

                        Apart from what's already said, you might consider to create a RTF-file. A RTF file can be handeled by (almost ?) all word processing programs. I found a specification (1.9) at MS here[^]

                        Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

                        R Offline
                        R Offline
                        ramidaJA
                        wrote on last edited by
                        #12

                        Thanks for every body. I found what I need. Greetings :) Ramida

                        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