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. ASP.NET
  4. How can I run a .exe file on the client side with asp.net 2.0

How can I run a .exe file on the client side with asp.net 2.0

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorialquestion
4 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.
  • B Offline
    B Offline
    Big Ralph
    wrote on last edited by
    #1

    I need to know how to run a .exe file on the client side. i.e.: I need to open winword.exe or excel or acrobat. BiG RaLpH

    B 1 Reply Last reply
    0
    • B Big Ralph

      I need to know how to run a .exe file on the client side. i.e.: I need to open winword.exe or excel or acrobat. BiG RaLpH

      B Offline
      B Offline
      Braulio Dez
      wrote on last edited by
      #2

      This is a tetchy issue... for security reasons you can not launch an EXE from ASP .net on the client side (... any hacker could just launch evil exe's). But... if you can: - If you want to just pregenarate an Office doc, you can send it as an stream to the client setting the content file to Excel or Word, it will open the excel file on the client side, maybe embedded on the nagivator. - If you want to open an empty excel file you could send that as an stream (An empty excel file), following the same approach as the previous bullet. - If you need to be able to execute the exe and you are on an intranet, on possiblity could be to have an ActiveX control that is installed on the client machine, BUT That's quite risky, I won't do that (security hole). HTH Braulio

      /// -------------------------      Braulio Díez      tipsdotnet.com /// -------------------------

      B 1 Reply Last reply
      0
      • B Braulio Dez

        This is a tetchy issue... for security reasons you can not launch an EXE from ASP .net on the client side (... any hacker could just launch evil exe's). But... if you can: - If you want to just pregenarate an Office doc, you can send it as an stream to the client setting the content file to Excel or Word, it will open the excel file on the client side, maybe embedded on the nagivator. - If you want to open an empty excel file you could send that as an stream (An empty excel file), following the same approach as the previous bullet. - If you need to be able to execute the exe and you are on an intranet, on possiblity could be to have an ActiveX control that is installed on the client machine, BUT That's quite risky, I won't do that (security hole). HTH Braulio

        /// -------------------------      Braulio Díez      tipsdotnet.com /// -------------------------

        B Offline
        B Offline
        Big Ralph
        wrote on last edited by
        #3

        thx can you plz give me some code? how to send a stream to a .doc or .xls file?

        BiG RaLpH

        B 1 Reply Last reply
        0
        • B Big Ralph

          thx can you plz give me some code? how to send a stream to a .doc or .xls file?

          BiG RaLpH

          B Offline
          B Offline
          Braulio Dez
          wrote on last edited by
          #4

          Good samples (using XMLSS): http://support.microsoft.com/kb/319180/en-us[^] http://support.microsoft.com/kb/285891/en-us[this is for ASP 3.0 but quite good^] More info about Excel Generation on ASP .net: http://www.tipsdotnet.com/ArticleBlog.aspx?KWID=51&Area=Excel&PageIndex=0[^] Good luck Braulio

          /// -------------------------      Braulio Díez      tipsdotnet.com /// -------------------------

          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