不是虚线,是表格的实线。
斑竹,想问下,如果我在页眉中插入图片的话,有办法能控制这个图片下移么?下移的值最好能我控制。因为之后还插入了文字,所以可能有点难。
代码如下:
object oNothing = System.Reflection.Missing.Value;
                //添加页眉 
                wordApp.ActiveWindow.View.Type = Microsoft.Office.Interop.Word.WdViewType.wdOutlineView; //视图样式
                wordApp.ActiveWindow.View.SeekView = Microsoft.Office.Interop.Word.WdSeekView.wdSeekPrimaryHeader; //定位到页眉,进入页眉设置                #region Logo            
                //插入logo
                wordApp.ActiveWindow.ActivePane.Selection.ParagraphFormat.Alignment = Microsoft.Office.Interop.Word.WdParagraphAlignment.wdAlignParagraphRight;
                Word.InlineShape shape1 = wordApp.ActiveWindow.ActivePane.Selection.InlineShapes.AddPicture(logoImgPath, ref oNothing, ref oNothing, ref oNothing);
                shape1.Height = 50;
                shape1.Width = 50;                shape1.ConvertToShape().WrapFormat.Type = Word.WdWrapType.wdWrapSquare;//四周环绕的方式