Linsf
January 18, 2008, 1:08am
1
It shows the url, but can’t work. Here’s my code:
Shape imageShape = new Shape(doc, ShapeType.Image);
imageShape.ImageData.SetImage(Server.MapPath("Temp") + "\icon_doc.gif");
imageShape.Width = 15;
imageShape.Height = 15;
imageShape.Target = "_blank";
imageShape.HRef = "http://www.yahoo.com.tw";
doc.FirstSection.Body.Tables[0].Rows[3].Cells[3].FirstParagraph.AppendChild(imageShape);
Thanks a lot.
Hi
Thanks for inquiry. You should press Ctrl+Click to open link in browser.
Best regards.
Linsf
January 20, 2008, 9:43am
3
I press Ctrl+Click … It’s not work until i Add the code :
imageShape.Inline = true;
Klepus
January 20, 2008, 11:55am
4
Hello Lin.
It’s nice that you got right with this code. Please let us know what you would like to know or to request further. We’d be happy to help you.
Regards,