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 to print an excel file?

how to print an excel file?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelptutorialquestion
7 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.
  • P Offline
    P Offline
    pradeep kumarappagari
    wrote on last edited by
    #1

    i have an excel file, i need to print that file using asp.net...how to do it? plz any one help me...

    Pradeep Reddy

    C B S 3 Replies Last reply
    0
    • P pradeep kumarappagari

      i have an excel file, i need to print that file using asp.net...how to do it? plz any one help me...

      Pradeep Reddy

      C Offline
      C Offline
      Chetan Ranpariya
      wrote on last edited by
      #2

      HI, 1. Connect to excel file and get data from it. 2. Display that data in Gridview/Datagrid or in tabular format. 3. Use javascript window.print() to print the content of page. I hope this will help u.

      Thanks and Regards, Chetan Ranpariya

      P 1 Reply Last reply
      0
      • C Chetan Ranpariya

        HI, 1. Connect to excel file and get data from it. 2. Display that data in Gridview/Datagrid or in tabular format. 3. Use javascript window.print() to print the content of page. I hope this will help u.

        Thanks and Regards, Chetan Ranpariya

        P Offline
        P Offline
        pradeep kumarappagari
        wrote on last edited by
        #3

        thanks for the reply... actually iam exporting data to an excel file from datagrid and storing that excel file at server side, now i want to print that excel file by clicking a server button...how to do it?

        Pradeep Reddy

        C 1 Reply Last reply
        0
        • P pradeep kumarappagari

          thanks for the reply... actually iam exporting data to an excel file from datagrid and storing that excel file at server side, now i want to print that excel file by clicking a server button...how to do it?

          Pradeep Reddy

          C Offline
          C Offline
          Chetan Ranpariya
          wrote on last edited by
          #4

          Hi, I got you requirement but I can not see any direct way to achieve this. The way I suggest you would be fine for you according to me.

          Thanks and Regards, Chetan Ranpariya

          P 1 Reply Last reply
          0
          • C Chetan Ranpariya

            Hi, I got you requirement but I can not see any direct way to achieve this. The way I suggest you would be fine for you according to me.

            Thanks and Regards, Chetan Ranpariya

            P Offline
            P Offline
            pradeep kumarappagari
            wrote on last edited by
            #5

            thank u...

            Pradeep Reddy

            1 Reply Last reply
            0
            • P pradeep kumarappagari

              i have an excel file, i need to print that file using asp.net...how to do it? plz any one help me...

              Pradeep Reddy

              B Offline
              B Offline
              badgrs
              wrote on last edited by
              #6

              Do you mean to print it on the server or the client? on the client you would have to link to the Excel file so the browser could download it.

              1 Reply Last reply
              0
              • P pradeep kumarappagari

                i have an excel file, i need to print that file using asp.net...how to do it? plz any one help me...

                Pradeep Reddy

                S Offline
                S Offline
                sPaudel
                wrote on last edited by
                #7

                if u save the excel file in certain location then load it in the program when u click the button raise the print event. I think it will help u

                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