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. Browser link to a spreadsheet

Browser link to a spreadsheet

Scheduled Pinned Locked Moved ASP.NET
csharpwinforms
7 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.
  • M Offline
    M Offline
    Mycroft Holmes
    wrote on last edited by
    #1

    I have a need to gather data from an Excel spreadsheet, I have no information about the sheet but I want the user to be able to link a cell in a datagrid or a text control to a cell in an excel spreadsheet. I have looked at some of the spreadsheet controls and have found no mention of remote referencing capability. I could set up the read capability if it was winforms but am I going to be limited by the lack of IO via the browser.

    N 1 Reply Last reply
    0
    • M Mycroft Holmes

      I have a need to gather data from an Excel spreadsheet, I have no information about the sheet but I want the user to be able to link a cell in a datagrid or a text control to a cell in an excel spreadsheet. I have looked at some of the spreadsheet controls and have found no mention of remote referencing capability. I could set up the read capability if it was winforms but am I going to be limited by the lack of IO via the browser.

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Mycroft Holmes wrote:

      but I want the user to be able to link a cell in a datagrid or a text control to a cell in an excel spreadsheet.

      What do you meant by link to a cell? Do you mean linking to excel file and when it opens, focus should be on a specified cell? If yes, I believe it is not possible because of the limitations you already aware. :)

      Navaneeth How to use google | Ask smart questions

      M 1 Reply Last reply
      0
      • N N a v a n e e t h

        Mycroft Holmes wrote:

        but I want the user to be able to link a cell in a datagrid or a text control to a cell in an excel spreadsheet.

        What do you meant by link to a cell? Do you mean linking to excel file and when it opens, focus should be on a specified cell? If yes, I believe it is not possible because of the limitations you already aware. :)

        Navaneeth How to use google | Ask smart questions

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        Actually I want to configure a web form so when I click a button the form will go get the data in the cells from the xls and populate the form. I am currently thinking I should be able to use a DLL (this is behind the firewall) to get the data for each cell, can't think of any other way.

        R N 2 Replies Last reply
        0
        • M Mycroft Holmes

          Actually I want to configure a web form so when I click a button the form will go get the data in the cells from the xls and populate the form. I am currently thinking I should be able to use a DLL (this is behind the firewall) to get the data for each cell, can't think of any other way.

          R Offline
          R Offline
          r a m e s h
          wrote on last edited by
          #4

          If you want to populate a DataGrid or GridView, You can do it using System.Data.OleDb namespace in ADO.NET. Refer this link for reading and writing Excel using C#. Read the Excel sheet into a DataSet and bind the GridView.

          M 1 Reply Last reply
          0
          • R r a m e s h

            If you want to populate a DataGrid or GridView, You can do it using System.Data.OleDb namespace in ADO.NET. Refer this link for reading and writing Excel using C#. Read the Excel sheet into a DataSet and bind the GridView.

            M Offline
            M Offline
            Mycroft Holmes
            wrote on last edited by
            #5

            Part of the problem is that the data structure is so crappy that OLEDB spits the dummy and won't talk to the sheet. Each branch has it's own flavour of sheet that does the same thing. The only way seems to be to link textbox to cell. These are very high level reports so there are limited cells to link.

            1 Reply Last reply
            0
            • M Mycroft Holmes

              Actually I want to configure a web form so when I click a button the form will go get the data in the cells from the xls and populate the form. I am currently thinking I should be able to use a DLL (this is behind the firewall) to get the data for each cell, can't think of any other way.

              N Offline
              N Offline
              N a v a n e e t h
              wrote on last edited by
              #6

              Mycroft Holmes wrote:

              Actually I want to configure a web form so when I click a button the form will go get the data in the cells from the xls and populate the form.

              This is possible if you have the excel file on server. Use Excel interop or OLE DB to read data from excel.

              Navaneeth How to use google | Ask smart questions

              M 1 Reply Last reply
              0
              • N N a v a n e e t h

                Mycroft Holmes wrote:

                Actually I want to configure a web form so when I click a button the form will go get the data in the cells from the xls and populate the form.

                This is possible if you have the excel file on server. Use Excel interop or OLE DB to read data from excel.

                Navaneeth How to use google | Ask smart questions

                M Offline
                M Offline
                Mycroft Holmes
                wrote on last edited by
                #7

                Excel sheet is on the client and the data does not conform to a reasonable (any) format.

                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