i m trying to add photo in an existing table in word document, it s ok ,
but how can i add photo with borders ??? (maybe with borderStyle)
original photos dont have borders, i want spire.doc create borders for that image.
this is my working code(without adding borders):
- Code: Select all
imgPath="image.jpg";
Document document = new Document();
document.LoadFromFile( "input.docx", FileFormat.Docx2010);
Table table = document.Sections[0].Tables[0] as Spire.Doc.Table;
DocPicture picture = table.Rows[3].Cells[0].Paragraphs[0].AppendPicture(Image.FromFile(imgPath));
picture.Width = 60;
picture.Height = 75;