Send Template Column's images to client??
-
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--
-
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--
Hi there, If you simply generate the excel file from rendering a datagrid control and set the
Response.ContentType
toapplication/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[^] -
Hi there, If you simply generate the excel file from rendering a datagrid control and set the
Response.ContentType
toapplication/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[^]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--
-
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--
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. -
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.Thanx.. I did it by sending url adresses of pix by excel file.. --junior coder--