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. How to get Excel and Word documents to open without the Open,Save,SaveAs box opening in IE9

How to get Excel and Word documents to open without the Open,Save,SaveAs box opening in IE9

Scheduled Pinned Locked Moved Web Development
tutorialquestion
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.
  • T Offline
    T Offline
    TClarke
    wrote on last edited by
    #1

    Hi All, I work on a web application that has Excel and Word documents in it. At the moment when a user opens these documents in IE9 they get presented with a dialog box asking: What do you want to do with "filename"? The user is presented with Open, Save and Save As as the options. Unlike previous versions of IE there is no check box to tick to remember the user's choice so it comes up every time. I really need to get rid to this box. Does anyone know how to disable it? Thanks Tom

    Cheers Tom Philosophy: The art of never getting beyond the concept of life. Religion: Morality taking credit for the work of luck.

    T P 2 Replies Last reply
    0
    • T TClarke

      Hi All, I work on a web application that has Excel and Word documents in it. At the moment when a user opens these documents in IE9 they get presented with a dialog box asking: What do you want to do with "filename"? The user is presented with Open, Save and Save As as the options. Unlike previous versions of IE there is no check box to tick to remember the user's choice so it comes up every time. I really need to get rid to this box. Does anyone know how to disable it? Thanks Tom

      Cheers Tom Philosophy: The art of never getting beyond the concept of life. Religion: Morality taking credit for the work of luck.

      T Offline
      T Offline
      TClarke
      wrote on last edited by
      #2

      OK this turned out to be very simple but I thought I'd publish the fix any way. Basically, despite the fact that IE 9 doesn't have the check box previous versions of IE have that enables you to save your decission of what to do with a file of a particular type it doesn't mean it doesn't check the registry to see if an old choice (from a previous browser) isn't stored there. So the fix is to replicate the storage of a previous version of IE into the registry of the machine on which IE 9 is running. In my case it went as follows: If it's not there already create the following key path in the registry: HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046} Inside the InternetExplorer.Application GUID key create a list of binary values using the COM name of the document opening application as a title. In my case (Office 2003): Excel.Sheet.8 PowerPoint.Show.8 Word.Document.8 If the values are 0000 the the application will open without asking the user.

      Cheers Tom Philosophy: The art of never getting beyond the concept of life.

      1 Reply Last reply
      0
      • T TClarke

        Hi All, I work on a web application that has Excel and Word documents in it. At the moment when a user opens these documents in IE9 they get presented with a dialog box asking: What do you want to do with "filename"? The user is presented with Open, Save and Save As as the options. Unlike previous versions of IE there is no check box to tick to remember the user's choice so it comes up every time. I really need to get rid to this box. Does anyone know how to disable it? Thanks Tom

        Cheers Tom Philosophy: The art of never getting beyond the concept of life. Religion: Morality taking credit for the work of luck.

        P Offline
        P Offline
        Prasanta_Prince
        wrote on last edited by
        #3

        you can try IFrame to show word or Excel document.

        P 1 Reply Last reply
        0
        • P Prasanta_Prince

          you can try IFrame to show word or Excel document.

          P Offline
          P Offline
          Peter_in_2780
          wrote on last edited by
          #4

          Iframes are done on the server side. They have NOTHING to do with this question. :mad:

          Software rusts. Simon Stephenson, ca 1994.

          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