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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Open an excel file

Open an excel file

Scheduled Pinned Locked Moved C#
questioncsharp
9 Posts 4 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
    sujithkumarsl
    wrote on last edited by
    #1

    hi, i have a c# windows application, from which the details can be exported to a Excel file. after exporting the application ask "Do you want to see the file". suppose the user clicks "yes", i want to show the file.... How can i open the file from the application?

    My small attempt...

    G P A 3 Replies Last reply
    0
    • S sujithkumarsl

      hi, i have a c# windows application, from which the details can be exported to a Excel file. after exporting the application ask "Do you want to see the file". suppose the user clicks "yes", i want to show the file.... How can i open the file from the application?

      My small attempt...

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      You can use OleDb driver to retrieve the data and display it using datagridview

      #region signature my articles #endregion

      S 1 Reply Last reply
      0
      • G Giorgi Dalakishvili

        You can use OleDb driver to retrieve the data and display it using datagridview

        #region signature my articles #endregion

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

        What is this? please go through the question before you answer..... ok?

        My small attempt...

        G 1 Reply Last reply
        0
        • S sujithkumarsl

          hi, i have a c# windows application, from which the details can be exported to a Excel file. after exporting the application ask "Do you want to see the file". suppose the user clicks "yes", i want to show the file.... How can i open the file from the application?

          My small attempt...

          P Offline
          P Offline
          Parwej Ahamad
          wrote on last edited by
          #4

          Plz go through this url http://www.c-sharpcorner.com/UploadFile/mgold/HowtoOepnandReadanExcelSpreadsheetinaListViewin.NET11282005034134AM/HowtoOepnandReadanExcelSpreadsheetinaListViewin.NET.aspx

          Parwej Ahamad g.parwez@gmail.com

          1 Reply Last reply
          0
          • S sujithkumarsl

            What is this? please go through the question before you answer..... ok?

            My small attempt...

            G Offline
            G Offline
            Giorgi Dalakishvili
            wrote on last edited by
            #5

            I explained how you can show data from excel file in your application. If you want to open ms excel then use Process class and specify the path of file you want to open.

            #region signature my articles #endregion

            S 1 Reply Last reply
            0
            • G Giorgi Dalakishvili

              I explained how you can show data from excel file in your application. If you want to open ms excel then use Process class and specify the path of file you want to open.

              #region signature my articles #endregion

              S Offline
              S Offline
              sujithkumarsl
              wrote on last edited by
              #6

              i just want to open the Excel file.... as (double cick).............. just to see the file

              My small attempt...

              G 1 Reply Last reply
              0
              • S sujithkumarsl

                i just want to open the Excel file.... as (double cick).............. just to see the file

                My small attempt...

                G Offline
                G Offline
                Giorgi Dalakishvili
                wrote on last edited by
                #7

                Have a look at Process class

                #region signature my articles #endregion

                1 Reply Last reply
                0
                • S sujithkumarsl

                  hi, i have a c# windows application, from which the details can be exported to a Excel file. after exporting the application ask "Do you want to see the file". suppose the user clicks "yes", i want to show the file.... How can i open the file from the application?

                  My small attempt...

                  A Offline
                  A Offline
                  Ariadne
                  wrote on last edited by
                  #8

                  you can also take a look here. Your problem is perhaps not so simple as you assume....

                  Ariadne

                  S 1 Reply Last reply
                  0
                  • A Ariadne

                    you can also take a look here. Your problem is perhaps not so simple as you assume....

                    Ariadne

                    S Offline
                    S Offline
                    sujithkumarsl
                    wrote on last edited by
                    #9

                    It was very easy and i did that................. Process.Start(d:/..../sample.xls); will solve the probelm

                    My small attempt...

                    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