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. .NET (Core and Framework)
  4. Save word

Save word

Scheduled Pinned Locked Moved .NET (Core and Framework)
tutorialcsharp
4 Posts 3 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
    Sreepathi
    wrote on last edited by
    #1

    Hi, I have an application which opens and saves word document from vb.net(windows) application. I open a document directly let us say TestReport.doc, I didn't closed and minimised the same. Now I run the .NET application and in the save dialog box I gave the same file name and path, then the application is hang up. Can any one guide me how to handle the same. Thanks, Sreepathi

    P P 2 Replies Last reply
    0
    • S Sreepathi

      Hi, I have an application which opens and saves word document from vb.net(windows) application. I open a document directly let us say TestReport.doc, I didn't closed and minimised the same. Now I run the .NET application and in the save dialog box I gave the same file name and path, then the application is hang up. Can any one guide me how to handle the same. Thanks, Sreepathi

      P Offline
      P Offline
      Peter Greenall
      wrote on last edited by
      #2

      Im not entirely sure what your problem is. Are you saying that the program will not close or minimise? What did you give the file name and path to - was it TestReport.doc? "Can anyone guide me how to handle the same." this sentence makes no sense - handle the same what??? Regards, Pete

      S 1 Reply Last reply
      0
      • P Peter Greenall

        Im not entirely sure what your problem is. Are you saying that the program will not close or minimise? What did you give the file name and path to - was it TestReport.doc? "Can anyone guide me how to handle the same." this sentence makes no sense - handle the same what??? Regards, Pete

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

        In simple I would like to know whether the Word document is already open or not before opening a document. I want a boolean which tells the document is open or not. Thanks.

        1 Reply Last reply
        0
        • S Sreepathi

          Hi, I have an application which opens and saves word document from vb.net(windows) application. I open a document directly let us say TestReport.doc, I didn't closed and minimised the same. Now I run the .NET application and in the save dialog box I gave the same file name and path, then the application is hang up. Can any one guide me how to handle the same. Thanks, Sreepathi

          P Offline
          P Offline
          Philip Fitzsimons
          wrote on last edited by
          #4

          the reason it hangs is that your instance of word is trying to show a dialog. this is because its trying to tell you that the docoument is already open. a better way round this is to chage your code to open the document in word as READONLY.


          "When the only tool you have is a hammer, a sore thumb you will have."

          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