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. read image from excel file....

read image from excel file....

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

    Hi all.... i have an excel sheet with images, now i want to read the images from excel sheet and save in to a folder using c#... please help me....it is urgent.... thanks Pradeep K.

    Pradeep Reddy

    P M 2 Replies Last reply
    0
    • P pradeep kumarappagari

      Hi all.... i have an excel sheet with images, now i want to read the images from excel sheet and save in to a folder using c#... please help me....it is urgent.... thanks Pradeep K.

      Pradeep Reddy

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      pradeep kumarappagari wrote:

      please help me....it is urgent....

      That is considered impolite on this site.

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer

      1 Reply Last reply
      0
      • P pradeep kumarappagari

        Hi all.... i have an excel sheet with images, now i want to read the images from excel sheet and save in to a folder using c#... please help me....it is urgent.... thanks Pradeep K.

        Pradeep Reddy

        M Offline
        M Offline
        mohankatari
        wrote on last edited by
        #3

        Hi Try the Below code you have to add one DLL or COM Obeject I dont remember exactly Named Microsoft Excel 11.0 Object //INCLUDE using Excel; //For Excel LOCATION DLL Microsoft Excel 11.0 Object Library using System.Reflection; //For Missing using System.Runtime.InteropServices; //For Marshall //CODE::::: Excel.Application oXL; _Workbook oWB; _Worksheet oSheet; object oMissing = Missing.Value; Range oRng; oXL = new Excel.Application(); oWB = oXL.Workbooks.Open("EXCEL LOCATION", oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing); int TotalSheetsinExcel = 0; TotalSheetsinExcel = oWB.Sheets.Count - 1; oSheet = (_Worksheet)oWB.Sheets[1]; Picture pic = (Picture)oSheet.Pictures(1); //pic object will have PICTURE //Close Objects oWB.Save(); oWB.Close(null, null, null); oXL.Workbooks.Close(); oXL.Quit(); Marshal.ReleaseComObject(oXL); Marshal.ReleaseComObject(oSheet); Marshal.ReleaseComObject(oWB); GC.Collect();

        P 1 Reply Last reply
        0
        • M mohankatari

          Hi Try the Below code you have to add one DLL or COM Obeject I dont remember exactly Named Microsoft Excel 11.0 Object //INCLUDE using Excel; //For Excel LOCATION DLL Microsoft Excel 11.0 Object Library using System.Reflection; //For Missing using System.Runtime.InteropServices; //For Marshall //CODE::::: Excel.Application oXL; _Workbook oWB; _Worksheet oSheet; object oMissing = Missing.Value; Range oRng; oXL = new Excel.Application(); oWB = oXL.Workbooks.Open("EXCEL LOCATION", oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing); int TotalSheetsinExcel = 0; TotalSheetsinExcel = oWB.Sheets.Count - 1; oSheet = (_Worksheet)oWB.Sheets[1]; Picture pic = (Picture)oSheet.Pictures(1); //pic object will have PICTURE //Close Objects oWB.Save(); oWB.Close(null, null, null); oXL.Workbooks.Close(); oXL.Quit(); Marshal.ReleaseComObject(oXL); Marshal.ReleaseComObject(oSheet); Marshal.ReleaseComObject(oWB); GC.Collect();

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

          hi thank for the reply... how to save the picture at particular location which is in pic object....

          Pradeep Reddy

          M 1 Reply Last reply
          0
          • P pradeep kumarappagari

            hi thank for the reply... how to save the picture at particular location which is in pic object....

            Pradeep Reddy

            M Offline
            M Offline
            mohankatari
            wrote on last edited by
            #5

            Hi I exactly don't know the procedure. The previous one which i sent also was wrong I think as pic.Copy() is returning "true".

            P 1 Reply Last reply
            0
            • M mohankatari

              Hi I exactly don't know the procedure. The previous one which i sent also was wrong I think as pic.Copy() is returning "true".

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

              thank u.... :-O

              Pradeep Reddy

              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