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. C#
  4. Open an excel document

Open an excel document

Scheduled Pinned Locked Moved C#
csharptutorial
5 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.
  • C Offline
    C Offline
    ckruger
    wrote on last edited by
    #1

    How to open an excel document with c#, The excel document must open in its own window when i press a button

    H P 2 Replies Last reply
    0
    • C ckruger

      How to open an excel document with c#, The excel document must open in its own window when i press a button

      H Offline
      H Offline
      HakunaMatada
      wrote on last edited by
      #2

      Try using the Process class of the System.Diagnostic namespace. Bikash Rai

      C 1 Reply Last reply
      0
      • H HakunaMatada

        Try using the Process class of the System.Diagnostic namespace. Bikash Rai

        C Offline
        C Offline
        ckruger
        wrote on last edited by
        #3

        I have used the following code Process.Start("EXCEL.EXE", "c:\\temp\\test.xls"); and ASP.NET starts a process, EXCEL.EXE, but the window does not open. I have tried to set the WindowStyle to maximize but stil nothing... What to do?

        H 1 Reply Last reply
        0
        • C ckruger

          How to open an excel document with c#, The excel document must open in its own window when i press a button

          P Offline
          P Offline
          Polis Pilavas
          wrote on last edited by
          #4

          Take a look here[^]. Regards, Polis Can you practice what you teach?

          1 Reply Last reply
          0
          • C ckruger

            I have used the following code Process.Start("EXCEL.EXE", "c:\\temp\\test.xls"); and ASP.NET starts a process, EXCEL.EXE, but the window does not open. I have tried to set the WindowStyle to maximize but stil nothing... What to do?

            H Offline
            H Offline
            HakunaMatada
            wrote on last edited by
            #5

            Sorry, but I am not into much of ASP.NET. I think it has got something to do with Security permissions and sruff. Why donlt you post this in the ASP.NET forum? Bikash Rai

            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