Last post Apr 03, 2014 12:07 AM by Sam - MSFT
Apr 02, 2014 05:16 AM|makavanapradip|LINK
hello Friends I am Trying to Export Gridview With Image To Word..I have Success Fully done with Following Code...
Image ImgLogo = (Image)e.Item.FindControl("ImageLogo");
protected string GetUrl(string imagepath)
string splits = Request.Url.AbsoluteUri.Split('/');
if (splits.Length >= 2)
string url = splits + "//";
for (int i = 2; i < splits.Length - 1; i++)
url += splits[i];
url += "/";
return url + imagepath;
But The Problem is What here is,,,,Path or Url OF Image(LOGO) Is Of Website Where Site Curruntly Located..Now After Word file Exported And Put this File In PC Where net Is not Available in that case Logo is not Diaplay In Word File....Please Resolve My
Apr 03, 2014 12:07 AM|Sam - MSFT|LINK
But The Problem is What here is,,,,Path or Url OF Image(LOGO) Is Of Website Where Site Curruntly Located..Now After Word file Exported And Put this File In PC Where net Is not Available in that case Logo is not Diaplay In Word File....Please Resolve My Problem
Word is saving the link to the pages. It is not storing the actual Image. So this is occuring. I think whenever you save a web page it will put the absolute path of the Image in place. This is how webpages work.
Try ITextSharp instead and see if that makes a difference. Refer to the following link:
Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
Please make sure that you completely understand the risk before retrieving any suggestions from the above link.