当前位置:编程学习 > C#/ASP.NET >>

C#操作word,如何去除表格边框

请问,C#操作word,如何使插入的表格没有边框线? --------------------编程问答-------------------- 那个虚线?,,, --------------------编程问答--------------------
引用 1 楼 happy09li 的回复:
那个虚线?,,,

不是虚线,是表格的实线。
斑竹,想问下,如果我在页眉中插入图片的话,有办法能控制这个图片下移么?下移的值最好能我控制。因为之后还插入了文字,所以可能有点难。
代码如下:
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;//四周环绕的方式
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,