日期:2014-05-17  浏览次数:21712 次

向word里面插入多张图片都叠在一起了怎么解决
Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application();
                Microsoft.Office.Interop.Word.Document document = wordApp.Documents.Add(ref none, ref none, ref none, ref none);                    
object LinkToFile = false;
                    object SaveWithDocument = true;
                    object Range = Missing.Value;
                    object Left = 1;
                    object Top = 1;
                    object Width = 100;
                    object Height = 100;
                    object Anchor = document.Application.Selection.Range;
                    for (int i = 1; i < 3; i++) { wordApp.Application.ActiveDocument.Shapes.AddPicture(@"F:\ceshi\ceshi.jpg", ref LinkToFile, ref SaveWithDocument, ref Left, ref Top, ref Width, ref Height, ref Anchor); 

}
   document.SaveAs(ref path, ref none, ref none, ref none, ref none, ref none, ref none, ref none, ref none, ref none, ref none, ref none, ref none, ref none, ref 

none, ref none);
                    document.Close(ref none, ref none, ref none);
                 求助,怎么排一下版 让图片不重叠就行

------解决方案--------------------
把那个Top 加上 Height不就可以了。你给的坐标不变,肯定都叠一起啦
------解决方案--------------------
操作这种可以自己先用宏模拟,再转换为C#