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. Web Development
  3. Unable to Open Office Docs from IIS

Unable to Open Office Docs from IIS

Scheduled Pinned Locked Moved Web Development
helpwindows-adminquestion
3 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.
  • M Offline
    M Offline
    mgr_2k7
    wrote on last edited by
    #1

    Hi All, Stuck in a weird position. I have written a code which lists the various documents in a folder. As soon as I click on the names of the documents they open up as they are. Word files in Microsoft Word, Excel in Excel etc...... The functionality works absolutely fine as long as I am debugging. As soon as I fire the same Application from IIS 5.1, the listing is proper, but on the click of the names nothing happens. I have even checked the taskmgr and can c the respective processes like WINWORD.EXE, EXCEL.EXE running, but I cannot c the docs. Can u guys help me plz?

    A 1 Reply Last reply
    0
    • M mgr_2k7

      Hi All, Stuck in a weird position. I have written a code which lists the various documents in a folder. As soon as I click on the names of the documents they open up as they are. Word files in Microsoft Word, Excel in Excel etc...... The functionality works absolutely fine as long as I am debugging. As soon as I fire the same Application from IIS 5.1, the listing is proper, but on the click of the names nothing happens. I have even checked the taskmgr and can c the respective processes like WINWORD.EXE, EXCEL.EXE running, but I cannot c the docs. Can u guys help me plz?

      A Offline
      A Offline
      aubndez
      wrote on last edited by
      #2

      Sounds like the processes are running in the background instead of focus being given to them.

      "Tarter Sauce" = a 7yr old's version of "WTF!"

      M 1 Reply Last reply
      0
      • A aubndez

        Sounds like the processes are running in the background instead of focus being given to them.

        "Tarter Sauce" = a 7yr old's version of "WTF!"

        M Offline
        M Offline
        mgr_2k7
        wrote on last edited by
        #3

        This is the sample code I used..... Word.ApplicationClass oWordApp = new Word.ApplicationClass(); oWordApp.Visible = true; Word.Document oWordDoc = oWordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing, ref missing); oWordDoc.Activate(); Can u plz help me?

        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