object NameBookMark = "pzr";
object rng = winWordControl1.document.Books.Item(ref NameBookMark).Range;
Word.InlineShape il;
il=winWordControl1.document.InlineShapes.AddPicture("1.bmp", ref Linktofile, ref savewithdocument, ref rng);
il.Width = 60;
il.Height = 30;
如何对插入的图片设置为衬于文字下方
object rng = winWordControl1.document.Books.Item(ref NameBookMark).Range;
Word.InlineShape il;
il=winWordControl1.document.InlineShapes.AddPicture("1.bmp", ref Linktofile, ref savewithdocument, ref rng);
il.Width = 60;
il.Height = 30;
如何对插入的图片设置为衬于文字下方
il.ConvertToShape().ZOrder(Microsoft.Office.Core.MsoZOrderCmd.msoSendBehindText);
string spr = dt.Rows[0]["CONFIRM_EMP_NAME"].ToString();
string shr = dt.Rows[0]["AUDIT_EMP_NAME"].ToString(); string PicturePath;
PicturePath = SystemInfo.RunPath + "BMP\\";
object Linktofile = false;
object savewithdocument = true; object NameBookMark = "spr";
object rng = winWordControl1.document.Books.Item(ref NameBookMark).Range;
if (File.Exists(PicturePath + spr + ".bmp"))
{
Word.InlineShape il;
il = winWordControl1.document.InlineShapes.AddPicture(PicturePath + spr + ".bmp", ref Linktofile, ref savewithdocument, ref rng);
il.Width = 30;
il.Height = 25;
il.ConvertToShape().ZOrder(Office.MsoZOrderCmd.msoBringInFrontOfText);
} object NameBookMark1 = "shr";
object rng1 = winWordControl1.document.Books.Item(ref NameBookMark1).Range;
if (File.Exists(PicturePath + shr + ".bmp"))
{
Word.InlineShape il1;
il1 = winWordControl1.document.InlineShapes.AddPicture(PicturePath + shr + ".bmp", ref Linktofile, ref savewithdocument, ref rng1);
il1.Width = 30;
il1.Height = 25;
il1.ConvertToShape().ZOrder(Office.MsoZOrderCmd.msoBringInFrontOfText);
}shr这个书签的图片没有msoSendBehindText效果
spr这个书签的图片有这个效果,为什么
http://www.textcontrol.com/en_US/
ilShape.Select();
ilShape.WrapFormat.Type= WdWrapType.wdWrapNone;
ilShape.ZOrder(Microsoft.Office.Core.MsoZOrderCmd.msoSendBehindText);