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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. to view MSword document

to view MSword document

Scheduled Pinned Locked Moved C / C++ / MFC
csharphelpquestion
4 Posts 4 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
    shaz jazz
    wrote on last edited by
    #1

    salam fellows! i want 2 show a file in MSword behind a button in vc.net.i dont want the contents to b shown in an edit box or some thing like dat but i want that when i click the button the the MSword start running and the file opens in MSword!so what do u people suggest??:confused: huryy if u can! may god help u solve ur problems as well, thax in advance

    J R A 3 Replies Last reply
    0
    • S shaz jazz

      salam fellows! i want 2 show a file in MSword behind a button in vc.net.i dont want the contents to b shown in an edit box or some thing like dat but i want that when i click the button the the MSword start running and the file opens in MSword!so what do u people suggest??:confused: huryy if u can! may god help u solve ur problems as well, thax in advance

      J Offline
      J Offline
      Jose Lamas Rios
      wrote on last edited by
      #2

      Look for ShellExecute in MSDN. -- jlr http://jlamas.blogspot.com/[^]

      1 Reply Last reply
      0
      • S shaz jazz

        salam fellows! i want 2 show a file in MSword behind a button in vc.net.i dont want the contents to b shown in an edit box or some thing like dat but i want that when i click the button the the MSword start running and the file opens in MSword!so what do u people suggest??:confused: huryy if u can! may god help u solve ur problems as well, thax in advance

        R Offline
        R Offline
        Rage
        wrote on last edited by
        #3

        From MSDN:

        ::ShellExecute(handle, "open", path_to_folder, NULL, NULL, SW_SHOWNORMAL);

        handle is the handle to your parent CDialog, path_to_folder is a string containing the path to your MSWORD document. ~RaGE();

        1 Reply Last reply
        0
        • S shaz jazz

          salam fellows! i want 2 show a file in MSword behind a button in vc.net.i dont want the contents to b shown in an edit box or some thing like dat but i want that when i click the button the the MSword start running and the file opens in MSword!so what do u people suggest??:confused: huryy if u can! may god help u solve ur problems as well, thax in advance

          A Offline
          A Offline
          Aamir Butt
          wrote on last edited by
          #4

          You can use CreateProcess(...) for this. Look at it in MSDN. Steve Mayfield: "Coding in VB is like riding a tricycle...once you figured out how to peddle, its really hard to fall off." My Articles

          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