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. Send Template Column's images to client??

Send Template Column's images to client??

Scheduled Pinned Locked Moved ASP.NET
helpquestion
5 Posts 2 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.
  • H Offline
    H Offline
    hakanaktan
    wrote on last edited by
    #1

    Hi, i have a datagrid and a button that opens "open/load" dialog box on my page . When user press open : datagrid is shown in excel file but i can not see the images that are listed at my Template Column.The same problem occurs when user press load. User downloads the dataGrid as an excel file but no images inside the Template Column. Hope someone would help about this.. Thanx in advance.. --junior coder--

    M 1 Reply Last reply
    0
    • H hakanaktan

      Hi, i have a datagrid and a button that opens "open/load" dialog box on my page . When user press open : datagrid is shown in excel file but i can not see the images that are listed at my Template Column.The same problem occurs when user press load. User downloads the dataGrid as an excel file but no images inside the Template Column. Hope someone would help about this.. Thanx in advance.. --junior coder--

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, If you simply generate the excel file from rendering a datagrid control and set the Response.ContentType to application/vnd.ms-excel, the result file is formated as a web page containing the html markup and you cannot see the images until they also get downloaded to the client machine. Another option is to generate the excel file as binary containing the images, and you may need to use the Automation[^] or a third party component like Aspose.Excel[^]

      H 1 Reply Last reply
      0
      • M minhpc_bk

        Hi there, If you simply generate the excel file from rendering a datagrid control and set the Response.ContentType to application/vnd.ms-excel, the result file is formated as a web page containing the html markup and you cannot see the images until they also get downloaded to the client machine. Another option is to generate the excel file as binary containing the images, and you may need to use the Automation[^] or a third party component like Aspose.Excel[^]

        H Offline
        H Offline
        hakanaktan
        wrote on last edited by
        #3

        i send my excel files by the first way as you told.(response.contenttype..) so my images are inside the client's "Temporary internet files" directory. how can i find the path of client's "Temporary internet files" directory way like "C:\Documents and Settings\UserName\Local Settings\Temporary Internet Files"? thanx for your answer.. --junior coder--

        M 1 Reply Last reply
        0
        • H hakanaktan

          i send my excel files by the first way as you told.(response.contenttype..) so my images are inside the client's "Temporary internet files" directory. how can i find the path of client's "Temporary internet files" directory way like "C:\Documents and Settings\UserName\Local Settings\Temporary Internet Files"? thanx for your answer.. --junior coder--

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          I don't think the images downloaded in the Temporary internet files folder as you only send the excel file to the client side, and this file contains the img tags pointing to the images. So you only see the images when you provide a way in order for the images to get downloaded to the same location of the excel file on the client machine. If you want the user to download all these files in one go, you either package them up in a single zip file for example or use a .xls file in the binary format.

          H 1 Reply Last reply
          0
          • M minhpc_bk

            I don't think the images downloaded in the Temporary internet files folder as you only send the excel file to the client side, and this file contains the img tags pointing to the images. So you only see the images when you provide a way in order for the images to get downloaded to the same location of the excel file on the client machine. If you want the user to download all these files in one go, you either package them up in a single zip file for example or use a .xls file in the binary format.

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

            Thanx.. I did it by sending url adresses of pix by excel file.. --junior coder--

            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