1
Answer

Word - This Object does not Support Attached Text

Photo of Maeve

Maeve

16y
8.3k
1
Hi,
Hope this is the right place for the post. I am getting an error: This Object does not support attached text.  This is generated working with Word9 with .NET 1.1.  Worked fine on XP with word 9 and 11, but word 2007 on vista is throwing this error when populating a text box.  Below in the code. Does anyone know a work around?  Thanks.

object tb9 = "Text Box 9";
            objWord.ActiveDocument.Shapes.Range(ref tb1).Select(ref M);
            objWord.Selection.ShapeRange.TextFrame.TextRange.Text = m_PermNo;

Answers (1)

0
Photo of Vipan Sharma
NA 1.1k 935 9y
<asp:Image Width="100" ID="imgEmp" ImageUrl='<%# Bind("Picture", "~/{0}") %>' runat="server" />
 
 
I have updated the code. Check it will work for you. let me know if still facing same issue.
Accepted
1
Photo of Vipan Sharma
NA 1.1k 935 9y
Hello,
 
Can you please tell me  ? What you shaving in database . image name or image path with Name .
 
<asp:Image Width="100" ID="imgEmp" ImageUrl='<%# Bind("Picture", "~/petpic/{0}") %>' runat="server" />
 
Let me know if any help required. 
Try This Hope it will help you . Accept answer , SO it will help next developer to solve same issue
 
 
0
Photo of Vipan Sharma
NA 1.1k 935 9y
 
Great. Accept answer, if it works for you . It will help next develop for solve same issue
 
0
Photo of Rajveer Singh
NA 74 4.4k 9y
ok thank u it worked
0
Photo of Vipan Sharma
NA 1.1k 935 9y
 
Accept answer if it works for you .
 
 
 
0
Photo of Rajveer Singh
NA 74 4.4k 9y
and in coding: if (PictureUpload.HasFile == true) { petImage = Path.GetFileName(PictureUpload.PostedFile.FileName); PictureUpload.SaveAs(Server.MapPath("petpic/" + petImage)); }
0
Photo of Rajveer Singh
NA 74 4.4k 9y
in the db table: Picture varchar(max) once i add picture it shows: petpic/sheep.jpg
0
Photo of Rajveer Singh
NA 74 4.4k 9y
hello this is the link i refer to do the above.. but the image doesnt appear
0
Photo of Rajeesh Menoth
NA 24.7k 629.6k 9y
Hi,
 
Read the below article..
 
 
http://www.dotnetfox.com/articles/how-to-display-images-in-datalist-control-using-Asp-Net-with-C-Sharp-1037.aspx