精华内容
下载资源
问答
  • 包括线条、矩形、基本形状(诸如圆形、多边形、星形、括号、笑脸等等图形)、箭头形状、公式形状、流程图、旗帜图形、标注图形等等,我们在编程过程中,想要在Word绘制不同类型的图形,可以通过类库来操作。...

    一、序言

    在Office Word中,支持在Word文档中插入类型非常丰富的形状,包括线条、矩形、基本形状(诸如圆形、多边形、星形、括号、笑脸等等图形)、箭头形状、公式形状、流程图、旗帜图形、标注图形等等,我们在编程过程中,想要在Word中绘制不同类型的图形,可以通过类库来操作。控件Spire.Doc for .NET 6.0及以上版本开始支持Office Word中的所有图形,可以通过代码操作某个单一的形状,也可以通过将单一形状进行组合来获得想要的图形或形状效果,当然,也支持自己自定义图形,通过编程绘制也是可以的。下面将介绍向Word绘制形状和组合形状的方法,方法中的代码供参考。

    PS:

    • Spire.Doc for .NET获取地址
    • 安装后,dll文件可在安装路径下的Bin文件夹中获取

    Dll引用

    二、代码示例

    (一)绘制单一形状

    步骤1:添加如下using指定

    using Spire.Doc;
    using Spire.Doc.Documents;
    using Spire.Doc.Fields;
    using System.Drawing;

     

    步骤2:创建示例,添加section、paragraph

    //创建一个Document实例
    Document doc = new Document();
    //添加一个section paragraph
     Section sec = doc.AddSection();
     Paragraph para1 = sec.AddParagraph();

     

    步骤3:在文档指定位置插入形状,并设置形状类型、大小、填充颜色、线条样式等

    (这里简单列举几个形状的添加方法,方法比较简单,不做赘述,效果图中列举了部分形状样式,需要其他样式的形状可自行设置添加)

               //插入一个矩形
                ShapeObject shape1 = para1.AppendShape(50, 50, ShapeType.Rectangle);
                shape1.FillColor = Color.Blue;
                shape1.StrokeColor = Color.LightSkyBlue;
                shape1.HorizontalPosition = 20;
                shape1.VerticalPosition = 20;
    
                //插入一个圆形
                ShapeObject shape2 = para1.AppendShape(50, 50, ShapeType.Ellipse);
                shape2.FillColor = Color.Purple;
                shape2.StrokeColor = Color.LightPink;
                shape2.LineStyle = ShapeLineStyle.Single;
                shape2.StrokeWeight = 1;
                shape2.HorizontalPosition = 80;
                shape2.VerticalPosition = 20;
    
                //插入一个公式符号 +
                ShapeObject shape3 = para1.AppendShape(50, 50, ShapeType.Plus);
                shape3.FillColor = Color.DarkCyan;
                shape3.StrokeColor = Color.LightGreen;
                shape3.LineStyle = ShapeLineStyle.Single;
                shape3.StrokeWeight = 1;
                shape3.HorizontalPosition = 140;
                shape3.VerticalPosition = 20;
    
                //插入一颗星形
                ShapeObject shape4 = para1.AppendShape(50, 50, ShapeType.Star);
                shape4.FillColor = Color.Red;
                shape4.StrokeColor = Color.Gold;
                shape4.LineStyle = ShapeLineStyle.Single;
                shape4.HorizontalPosition = 200;
                shape4.VerticalPosition = 20;

     

    步骤4:保存文档

    //保存并打开文档
    doc.SaveToFile("InsertShapes.docx", FileFormat.Docx2010);
    System.Diagnostics.Process.Start("InsertShapes.docx");

     

    形状添加效果:

    全部代码:

      1 using Spire.Doc;
      2 using Spire.Doc.Documents;
      3 using Spire.Doc.Fields;
      4 using System.Drawing;
      5 
      6 namespace AddShapes_Doc
      7 {
      8     class Program
      9     {
     10         static void Main(string[] args)
     11         {
     12             //创建一个Document实例
     13             Document doc = new Document();
     14 
     15             //添加一个section paragraph
     16             Section sec = doc.AddSection();
     17             Paragraph para1 = sec.AddParagraph();
     18 
     19             //插入一个矩形
     20             ShapeObject shape1 = para1.AppendShape(50, 50, ShapeType.Rectangle);
     21             shape1.FillColor = Color.Blue;
     22             shape1.StrokeColor = Color.LightSkyBlue;
     23             shape1.HorizontalPosition = 20;
     24             shape1.VerticalPosition = 20;
     25 
     26             //插入一个圆形
     27             ShapeObject shape2 = para1.AppendShape(50, 50, ShapeType.Ellipse);
     28             shape2.FillColor = Color.Purple;
     29             shape2.StrokeColor = Color.LightPink;
     30             shape2.LineStyle = ShapeLineStyle.Single;
     31             shape2.StrokeWeight = 1;
     32             shape2.HorizontalPosition = 80;
     33             shape2.VerticalPosition = 20;
     34 
     35             //插入一个公式符号 +
     36             ShapeObject shape3 = para1.AppendShape(50, 50, ShapeType.Plus);
     37             shape3.FillColor = Color.DarkCyan;
     38             shape3.StrokeColor = Color.LightGreen;
     39             shape3.LineStyle = ShapeLineStyle.Single;
     40             shape3.StrokeWeight = 1;
     41             shape3.HorizontalPosition = 140;
     42             shape3.VerticalPosition = 20;
     43 
     44             //插入一颗星形
     45             ShapeObject shape4 = para1.AppendShape(50, 50, ShapeType.Star);
     46             shape4.FillColor = Color.Red;
     47             shape4.StrokeColor = Color.Gold;
     48             shape4.LineStyle = ShapeLineStyle.Single;
     49             shape4.HorizontalPosition = 200;
     50             shape4.VerticalPosition = 20;
     51 
     52             //插入一个立方体
     53             ShapeObject shape5 = para1.AppendShape(50, 50, ShapeType.Cube);
     54             shape5.FillColor = Color.OrangeRed;
     55             shape5.StrokeColor = Color.Orange;
     56             shape5.LineStyle = ShapeLineStyle.Single;
     57             shape5.HorizontalPosition = 260;
     58             shape5.VerticalPosition = 20;
     59 
     60             //插入一个圆柱体
     61             ShapeObject shape6 = para1.AppendShape(50, 50, ShapeType.Can);
     62             shape6.FillColor = Color.Goldenrod;
     63             shape6.StrokeColor = Color.Gold;
     64             shape6.LineStyle = ShapeLineStyle.Single;
     65             shape6.HorizontalPosition = 320;
     66             shape6.VerticalPosition = 20;
     67 
     68             //插入一个箭头
     69             ShapeObject shape7 = para1.AppendShape(50, 50, ShapeType.Arrow);
     70             shape7.FillColor = Color.Yellow;
     71             shape7.StrokeColor = Color.Yellow;
     72             shape7.LineStyle = ShapeLineStyle.Single;
     73             shape7.HorizontalPosition = 20;
     74             shape7.VerticalPosition = 80;
     75 
     76             //插入一个v形臂章图形
     77             ShapeObject shape8 = para1.AppendShape(50, 50, ShapeType.Chevron);
     78             shape8.FillColor = Color.YellowGreen;
     79             shape8.StrokeColor = Color.Yellow;
     80             shape8.LineStyle = ShapeLineStyle.Single;
     81             shape8.HorizontalPosition = 80;
     82             shape8.VerticalPosition = 80;
     83 
     84             //插入一个循环箭头图形
     85             ShapeObject shape9 = para1.AppendShape(50, 50, ShapeType.CircularArrow);
     86             shape9.FillColor = Color.Green;
     87             shape9.StrokeColor = Color.Yellow;
     88             shape9.LineStyle = ShapeLineStyle.Single;
     89             shape9.HorizontalPosition = 140;
     90             shape9.VerticalPosition = 80;
     91 
     92             //插入一个云图形
     93             ShapeObject shape10 = para1.AppendShape(50, 50, ShapeType.CloudCallout);
     94             shape10.FillColor = Color.LightSkyBlue;
     95             shape10.StrokeColor = Color.White;
     96             shape10.LineStyle = ShapeLineStyle.Single;
     97             shape10.HorizontalPosition = 200;
     98             shape10.VerticalPosition = 80;
     99 
    100             //插入一个环形图
    101             ShapeObject shape11 = para1.AppendShape(50, 50, ShapeType.Donut);
    102             shape11.FillColor = Color.Pink;
    103             shape11.StrokeColor = Color.White;
    104             shape11.LineStyle = ShapeLineStyle.Single;
    105             shape11.HorizontalPosition = 260;
    106             shape11.VerticalPosition = 80;
    107 
    108             //插入一个波浪形状图
    109             ShapeObject shape12 = para1.AppendShape(50, 50, ShapeType.DoubleWave);
    110             shape12.FillColor = Color.Plum;
    111             shape12.StrokeColor = Color.White;
    112             shape12.LineStyle = ShapeLineStyle.Single;
    113             shape12.HorizontalPosition = 320;
    114             shape12.VerticalPosition = 80;
    115 
    116             //插入一个礼结状图形
    117             ShapeObject shape13 = para1.AppendShape(50, 50, ShapeType.EllipseRibbon);
    118             shape13.FillColor = Color.RosyBrown;
    119             shape13.StrokeColor = Color.White;
    120             shape13.LineStyle = ShapeLineStyle.Single;
    121             shape13.HorizontalPosition = 20;
    122             shape13.VerticalPosition = 140;
    123 
    124             //插入一个心形图
    125             ShapeObject shape14 = para1.AppendShape(50, 50, ShapeType.Heart);
    126             shape14.FillColor = Color.Red;
    127             shape14.StrokeColor = Color.White;
    128             shape14.LineStyle = ShapeLineStyle.Single;
    129             shape14.HorizontalPosition = 80;
    130             shape14.VerticalPosition = 140;
    131 
    132             //插入一个六边形图形
    133             ShapeObject shape15 = para1.AppendShape(50, 50, ShapeType.Hexagon);
    134             shape15.FillColor = Color.DarkCyan;
    135             shape15.StrokeColor = Color.White;
    136             shape15.LineStyle = ShapeLineStyle.Single;
    137             shape15.HorizontalPosition = 140;
    138             shape15.VerticalPosition = 140;
    139 
    140             //插入一个不规则图形
    141             ShapeObject shape16 = para1.AppendShape(50, 50, ShapeType.IrregularSeal1);
    142             shape16.FillColor = Color.DeepPink;
    143             shape16.StrokeColor = Color.White;
    144             shape16.LineStyle = ShapeLineStyle.Single;
    145             shape16.HorizontalPosition = 200;
    146             shape16.VerticalPosition = 140;
    147 
    148             //插入一个月亮形状
    149             ShapeObject shape17 = para1.AppendShape(50, 50, ShapeType.Moon);
    150             shape17.FillColor = Color.Violet;
    151             shape17.StrokeColor = Color.White;
    152             shape17.LineStyle = ShapeLineStyle.Single;
    153             shape17.HorizontalPosition = 260;
    154             shape17.VerticalPosition = 140;
    155 
    156             //插入一个"禁止"形状
    157             ShapeObject shape18 = para1.AppendShape(50, 50, ShapeType.NoSmoking);
    158             shape18.FillColor = Color.Yellow;
    159             shape18.StrokeColor = Color.Goldenrod;
    160             shape18.LineStyle = ShapeLineStyle.Single;
    161             shape18.HorizontalPosition = 320;
    162             shape18.VerticalPosition = 140;
    163 
    164             //保存并打开文档
    165             doc.SaveToFile("InsertShapes.docx", FileFormat.Docx2010);
    166             System.Diagnostics.Process.Start("InsertShapes.docx");
    167         }
    168     }
    169 }
    View Code

     

    (二)添加组合形状

    步骤1:添加如下using指令

    using Spire.Doc;
    using Spire.Doc.Documents;
    using Spire.Doc.Fields;
    using System.Drawing;

     

    步骤2:创建文档,添加section、paragraph

    Document doc = new Document();
    Section sec = doc.AddSection();
    Paragraph para1 = sec.AddParagraph();

     

    步骤3:添加文字,并应用格式到文字

    para1.AppendText("中日文化交流");
    ParagraphStyle style1 = new ParagraphStyle(doc);
    style1.Name = "titleStyle";
    style1.CharacterFormat.Bold = true;
    style1.CharacterFormat.FontName = "隶书";
    style1.CharacterFormat.FontSize = 30f;
    doc.Styles.Add(style1);
    para1.ApplyStyle("titleStyle");
    para1.Format.HorizontalAlignment = HorizontalAlignment.Center;

     

    步骤4:实例化段落2,并创建一个形状组合,并设置大小

    //实例化段落2
    Paragraph para2 = sec.AddParagraph();
    //创建一个形状组合并设置大小
    ShapeGroup shapegr = para2.AppendShapeGroup(300, 300);

     

    步骤5:绘制一个中国国旗,这里需要组合形状矩形和五角星形,并填充相应的颜色

     //添加一个矩形到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Rectangle)
                {
                    Width = 900,
                    Height = 500,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.Red,
                    StrokeColor = Color.Red,                
                    StrokeWeight = 1,
                });
    
                //添加第一个五角星到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Star)
                {
                    Width = 100,
                    Height = 100,
                    VerticalPosition = 90,
                    HorizontalPosition = 90,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.Yellow,
                    StrokeColor = Color.Yellow,
                    StrokeWeight = 1,
                });
                //添加第二个五角星到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Star)
                {
                    Width = 50,
                    Height = 50,
                    VerticalPosition = 40,
                    HorizontalPosition = 210,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.Yellow,
                    StrokeColor = Color.Yellow,
                    StrokeWeight = 1,
                });
                //添加第三个五角星到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Star)
                {
                    Width = 50,
                    Height = 50,
                    VerticalPosition = 80,
                    HorizontalPosition = 280,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.Yellow,
                    StrokeColor = Color.Yellow,
                    StrokeWeight = 1,
                });
                //添加第四个五角星到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Star)
                {
                    Width = 50,
                    Height = 50,
                    VerticalPosition = 160,
                    HorizontalPosition = 280,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.Yellow,
                    StrokeColor = Color.Yellow,
                    StrokeWeight = 1,
                });
                //添加第五个五角星到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Star)
                {
                    Width = 50,
                    Height = 50,
                    VerticalPosition = 220,
                    HorizontalPosition = 210,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.Yellow,
                    StrokeColor = Color.Yellow,
                    StrokeWeight = 1,
                });

     

    步骤6:绘制一个日本国旗,需要组合形状矩形和圆形,并填充颜色

    //绘制一个矩形并添加到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Rectangle)
                {
                    Width = 900,
                    Height = 500,
                    VerticalPosition = 700,
                    HorizontalPosition = 600,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.WhiteSmoke,
                    StrokeColor = Color.WhiteSmoke,
                    StrokeWeight = 1,
                });
                //绘制一个圆形并添加到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Ellipse)
                {
                    Width = 250,
                    Height = 250,
                    VerticalPosition = 800,
                    HorizontalPosition = 900,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.Red,
                    StrokeColor = Color.Red,
                    StrokeWeight = 1,
                });

     

    步骤7:保存文档

    //保存并打开文档
    doc.SaveToFile("InsertShapegroups.docx", FileFormat.Docx2010);
    System.Diagnostics.Process.Start("InsertShapegroups.docx");

     

    添加效果:

    (此时的图形是组合后的效果,任意拖动图形不会出现各个形状分离、错位的情况。)

    全部代码:

      1 using Spire.Doc;
      2 using Spire.Doc.Documents;
      3 using Spire.Doc.Fields;
      4 using System.Drawing;
      5 
      6 namespace InsertShapesGroup_Doc
      7 {
      8     class Program
      9     {
     10         static void Main(string[] args)
     11         {
     12             //创建一个Document实例并添加section及paragraph
     13             Document doc = new Document();
     14             Section sec = doc.AddSection();
     15             Paragraph para1 = sec.AddParagraph();
     16             //添加文字,并应用格式到文字
     17             para1.AppendText("中日文化交流");
     18             ParagraphStyle style1 = new ParagraphStyle(doc);
     19             style1.Name = "titleStyle";
     20             style1.CharacterFormat.Bold = true;
     21             style1.CharacterFormat.FontName = "隶书";
     22             style1.CharacterFormat.FontSize = 30f;
     23             doc.Styles.Add(style1);
     24             para1.ApplyStyle("titleStyle");
     25             para1.Format.HorizontalAlignment = HorizontalAlignment.Center;
     26 
     27             //实例化段落2
     28             Paragraph para2 = sec.AddParagraph();
     29             //创建一个形状组合并设置大小
     30             ShapeGroup shapegr = para2.AppendShapeGroup(300, 300);
     31 
     32             //添加一个矩形到形状组合
     33             shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Rectangle)
     34             {
     35                 Width = 900,
     36                 Height = 500,
     37                 LineStyle = ShapeLineStyle.Single,
     38                 FillColor = Color.Red,
     39                 StrokeColor = Color.Red,                
     40                 StrokeWeight = 1,
     41             });
     42 
     43             //添加第一个五角星到形状组合
     44             shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Star)
     45             {
     46                 Width = 100,
     47                 Height = 100,
     48                 VerticalPosition = 90,
     49                 HorizontalPosition = 90,
     50                 LineStyle = ShapeLineStyle.Single,
     51                 FillColor = Color.Yellow,
     52                 StrokeColor = Color.Yellow,
     53                 StrokeWeight = 1,
     54             });
     55             //添加第二个五角星到形状组合
     56             shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Star)
     57             {
     58                 Width = 50,
     59                 Height = 50,
     60                 VerticalPosition = 40,
     61                 HorizontalPosition = 210,
     62                 LineStyle = ShapeLineStyle.Single,
     63                 FillColor = Color.Yellow,
     64                 StrokeColor = Color.Yellow,
     65                 StrokeWeight = 1,
     66             });
     67             //添加第三个五角星到形状组合
     68             shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Star)
     69             {
     70                 Width = 50,
     71                 Height = 50,
     72                 VerticalPosition = 80,
     73                 HorizontalPosition = 280,
     74                 LineStyle = ShapeLineStyle.Single,
     75                 FillColor = Color.Yellow,
     76                 StrokeColor = Color.Yellow,
     77                 StrokeWeight = 1,
     78             });
     79             //添加第四个五角星到形状组合
     80             shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Star)
     81             {
     82                 Width = 50,
     83                 Height = 50,
     84                 VerticalPosition = 160,
     85                 HorizontalPosition = 280,
     86                 LineStyle = ShapeLineStyle.Single,
     87                 FillColor = Color.Yellow,
     88                 StrokeColor = Color.Yellow,
     89                 StrokeWeight = 1,
     90             });
     91             //添加第五个五角星到形状组合
     92             shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Star)
     93             {
     94                 Width = 50,
     95                 Height = 50,
     96                 VerticalPosition = 220,
     97                 HorizontalPosition = 210,
     98                 LineStyle = ShapeLineStyle.Single,
     99                 FillColor = Color.Yellow,
    100                 StrokeColor = Color.Yellow,
    101                 StrokeWeight = 1,
    102             });
    103 
    104             //绘制一个矩形并添加到形状组合
    105             shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Rectangle)
    106             {
    107                 Width = 900,
    108                 Height = 500,
    109                 VerticalPosition = 700,
    110                 HorizontalPosition = 600,
    111                 LineStyle = ShapeLineStyle.Single,
    112                 FillColor = Color.WhiteSmoke,
    113                 StrokeColor = Color.Wheat,
    114                 StrokeWeight = 1,
    115             });
    116             //绘制一个圆形并添加到形状组合
    117             shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Ellipse)
    118             {
    119                 Width = 250,
    120                 Height = 250,
    121                 VerticalPosition = 800,
    122                 HorizontalPosition = 900,
    123                 LineStyle = ShapeLineStyle.Single,
    124                 FillColor = Color.Red,
    125                 StrokeColor = Color.Red,
    126                 StrokeWeight = 1,
    127             });    
    128 
    129             //保存并打开文档
    130             doc.SaveToFile("InsertShapegroups.docx", FileFormat.Docx2010);
    131             System.Diagnostics.Process.Start("InsertShapegroups.docx");
    132         }
    133     }
    134 }
    View Code

     

    以上全部是关于Word中绘制图形形状的内容。如需转载,请注明出处!

    感谢阅读!

    转载于:https://www.cnblogs.com/Yesi/p/9143978.html

    展开全文
  • 1. 如何在word中打开VBA编辑器?ALT+F112. 如何运行VBA代码?https://wenku.baidu.com/view/5b7edafea45177232f60a2e8.html 在代码编辑区输入如下代码:Sub A() MsgBox ("hello") End Sub点击绿色的三角按钮即可...

    1. 如何在word中打开VBA编辑器?

    ALT+F11

    2. 如何运行VBA代码?

    https://wenku.baidu.com/view/5b7edafea45177232f60a2e8.html
    在代码编辑区输入如下代码:

    Sub A()
    MsgBox ("hello")
    End Sub

    点击绿色的三角按钮即可运行:
    这里写图片描述

    运行结果:
    这里写图片描述

    3. 如何在word中录制一段宏?

    如果只想进行一些重复性的操作,录制一段宏然后进行修改或者多次运行是一个非常好的办法。
    http://www.officezhushou.com/word2013/4429.html
    然而我似乎失败了,之后尝试成功再来补上吧。。。。。。

    4. 如何用BVA代码在word中绘制线条和形状

    非常详细的图形设置http://blog.sina.com.cn/s/blog_ae6fe3f8010175sc.html
    这个博客介绍了如何画形状和直线,函数曲线。
    http://blog.sina.com.cn/s/blog_557d25460100vh34.html
    如何把填充色去掉
    http://club.excelhome.net/thread-1310213-1-1.html
    微软官方addShape:
    https://msdn.microsoft.com/en-us/library/office/aa171541(v=office.11).aspx

    Sub Shapes()
        ActiveDocument.Shapes.AddShape(msoShapeOval, 120, 108, 4, 4).Name = "shp1" '椭圆形
        ActiveDocument.Shapes.AddShape(msoShapeOval, 130, 108, 4, 4).Name = "shp2"
        ActiveDocument.Shapes.AddShape(msoShapeRectangle, 165.75, 175.5, 197.25, 118.5).Name = "shp3" '矩形
        ActiveDocument.Shapes.Range(Array("shp1", "shp2", "shp3")).Group
    End Sub

    然而这里面的单位是磅(point) (1 centimeter = 28.35 points),我们要如何把单位变成cm或者mm呢?
    可以参考微软的官方说明
    https://msdn.microsoft.com/en-us/library/office/aa220346(v=office.11).aspx

    ActiveDocument.Shapes.AddShape(msoShapeRectangle, 165.75, 175.5, 197.25, 118.5).Name = "shp3" '随便画一个矩形
        With Shapes("shp3")
            .Left = CentimetersToPoints(1) 'cm为单位,并且最后只有一个更改后的矩形
            .Top = CentimetersToPoints(1)
            .Width = CentimetersToPoints(1)
            .Height = CentimetersToPoints(1)
            .Select '选中
            With Selection
                .ShapeRange.Fill.Visible = msoFalse '设为透明无填充
            End With
        End With

    5.如何用VBA在word中设置页边距

    这个资料非常好~
    https://wenku.baidu.com/view/a824437aaef8941ea76e05a0.html
    其他参考资料:
    https://www.kafan.cn/edu/4122216.html (不知道怎么用)
    http://club.excelhome.net/thread-155191-1-1.html (excel home)
    以下是我自己用的代码,放在第一张图那个代码框里面运行即可。

    Sub Page()
        With ActiveDocument
            With .PageSetup
               .PaperSize = wdPaperA3 '选择A3纸
               .Orientation = wdOrientLandscape '横向
               .LeftMargin = CentimetersToPoints(1) '左边距,单位cm
               .RightMargin = CentimetersToPoints(1)
               .TopMargin = CentimetersToPoints(1)
               .BottomMargin = CentimetersToPoints(1)
               .SectionStart = wdSectionNewPage '开始新的一页
            End With
        End With
    End Sub

    6. 如何去下一页或者指定页?

    微软官方goto函数:
    https://msdn.microsoft.com/en-us/library/office/aa172261(v=office.11).aspx
    一点goto函数的介绍
    https://wenku.baidu.com/view/d7d09fb7f121dd36a32d82f9.html

    Application.ActiveWindow.Selection.GoTo wdGoToPage, wdGoToNext, , 3 '去第三页

    新增一页的代码:

    Sub AddPage()
        ActiveDocument.Range(0, 0).InsertAfter Chr(12)
    End Sub

    7. 如何使用VBA的循环语句

    百度经验:
    http://jingyan.baidu.com/article/6079ad0e83959c28ff86db09.html

    最后的代码

    (稍微带一点小bug):
    实现的内容大概是生成一个22页的word,然后前21页中每一页画有两个边框和一个点和一个长方形,点和长方形的位置和长方形的宽度由数组决定。

    Sub loops()
    Dim arrD(1 To 22) '声明数组
    Dim arrW(1 To 22)
    Dim arrName1()
    Dim arrName2()
    Dim arrName3()
    Dim arrName0()
    arrName0 = Array("Rec1", "Rec2", "Rec3", "Rec4", "Rec5", "Rec6", "Rec7", _
                     "Rec8", "Rec9", "Rec10", "Rec11", "Rec12", "Rec13", "Rec14", _
                     "Rec15", "Rec16", "Rec17", "Rec18", "Rec19", "Rec20", "Rec21", "Rec22")
    arrName1 = Array("Re1", "Re2", "Re3", "Re4", "Re5", "Re6", "Re7", _
                     "Re8", "Re9", "Re10", "Re11", "Re12", "Re13", "Re14", _
                     "Re15", "Re16", "Re17", "Re18", "Re19", "Re20", "Re21", "Re22")
    
    arrName2 = Array("L1", "L2", "L3", "L4", "L5", "L6", "L7", _
                     "L8", "L9", "L10", "L11", "L12", "L13", "L14", _
                     "L15", "L16", "L17", "L18", "L19", "L20", "L21", "L22")
    arrName3 = Array("R1", "R2", "R3", "R4", "R5", "R6", "R7", _
                     "R8", "R9", "R10", "R11", "R12", "R13", "R14", _
                     "R15", "R16", "R17", "R18", "R19", "R20", "R21", "R22")
    
    arrD(1) = 5 '似乎只能这样赋值。。。。简直尴尬
    arrD(2) = 5
    arrD(3) = 5
    arrD(4) = 5
    arrD(5) = 5
    arrD(6) = 5
    arrD(7) = 5
    arrD(8) = 7.5
    arrD(9) = 7.5
    arrD(10) = 7.5
    arrD(11) = 7.5
    arrD(12) = 7.5
    arrD(13) = 7.5
    arrD(14) = 7.5
    arrD(15) = 10
    arrD(16) = 10
    arrD(17) = 10
    arrD(18) = 10
    arrD(19) = 10
    arrD(20) = 10
    arrD(21) = 10
    arrD(22) = 5
    arrW(1) = 12.5 / 10
    arrW(2) = 8.84 / 10
    arrW(3) = 6.25 / 10
    arrW(4) = 4.42 / 10
    arrW(5) = 3.13 / 10
    arrW(6) = 2.21 / 10
    arrW(7) = 1.56 / 10
    arrW(8) = 18.75 / 10
    arrW(9) = 13.26 / 10
    arrW(10) = 9.38 / 10
    arrW(11) = 6.63 / 10
    arrW(12) = 4.69 / 10
    arrW(13) = 3.31 / 10
    arrW(14) = 2.34 / 10
    arrW(15) = 25 / 10
    arrW(16) = 17.68 / 10
    arrW(17) = 12.5 / 10
    arrW(18) = 8.84 / 10
    arrW(19) = 6.25 / 10
    arrW(20) = 4.42 / 10
    arrW(21) = 3.13 / 10
    arrW(22) = 12.5 / 10
    
    Call setPage
    
    Dim j As Integer
    For j = 1 To 21 Step 1
        Call AddPage '先把所有的页都生成好,不然原来画好的图就会被覆盖掉
    Next
    
    Dim i As Integer
    For i = 1 To 22 Step 1
        ' Goto函数
        Application.ActiveWindow.Selection.GoTo wdGoToPage, wdGoToNext, , i
    
        ActiveDocument.Shapes.AddShape(msoShapeRectangle, _
        Left:=CentimetersToPoints(-0.12 + 3), Top:=CentimetersToPoints(-0.19 + 0.19), _
        Width:=CentimetersToPoints(31), Height:=CentimetersToPoints(30.7)).Name = arrName0(i)
        With Shapes(arrName0(i))
            .Select
            With Selection
                .ShapeRange.Fill.Visible = msoFalse
            End With
        End With
    
        ActiveDocument.Shapes.AddShape(msoShapeRectangle, _
        Left:=CentimetersToPoints(0 + 3), Top:=CentimetersToPoints(0 + 0.19), _
        Width:=CentimetersToPoints(30.48), Height:=CentimetersToPoints(27.5)).Name = arrName1(i)
        With Shapes(arrName1(i))
            .Select
            With Selection
                .ShapeRange.Fill.Visible = msoFalse
            End With
        End With
    
        ActiveDocument.Shapes.AddShape(msoShapeOval, _
        Left:=CentimetersToPoints(15.24 - arrD(i) / 2 - 0.1 + 3), Top:=CentimetersToPoints(14.2875 - 0.1 + 0.19), _
        Width:=CentimetersToPoints(0.2), Height:=CentimetersToPoints(0.2)).Name = arrName2(i)
    
        ActiveDocument.Shapes.AddShape(msoShapeRectangle, _
        Left:=CentimetersToPoints(15.24 + arrD(i) / 2 - arrW(i) / 2 + 3), Top:=CentimetersToPoints(14.2875 - 5 + 0.19), _
        Width:=CentimetersToPoints(arrW(i)), Height:=CentimetersToPoints(10)).Name = arrName3(i)
    
    Next
    End Sub
    
    
    Sub setPage()
        With ActiveDocument
            With .PageSetup
               .PaperSize = wdPaperA3 '选择A3纸
               .Orientation = wdOrientLandscape '横向
               .LeftMargin = CentimetersToPoints(3.17) '左边距,单位cm
               .RightMargin = CentimetersToPoints(3.17)
               .TopMargin = CentimetersToPoints(0.2)
               .BottomMargin = CentimetersToPoints(1.5)
               '.SectionStart = wdSectionNewPage '开始新的一页
            End With
        End With
    End Sub
    
    Sub AddPage()
        ActiveDocument.Range(0, 0).InsertAfter Chr(12)
    End Sub

    非常强大的VBA技巧解析:http://club.excelhome.net/thread-395683-1-1.html

    展开全文
  • 包括线条、矩形、基本形状(诸如圆形、多边形、星形、括号、笑脸等等图形)、箭头形状、公式形状、流程图、旗帜图形、标注图形等等,我们在编程过程中,想要在Word绘制不同类型的图形,可以通过类库来操作。...

    一、序言

    在Office Word中,支持在Word文档中插入类型非常丰富的形状,包括线条、矩形、基本形状(诸如圆形、多边形、星形、括号、笑脸等等图形)、箭头形状、公式形状、流程图、旗帜图形、标注图形等等,我们在编程过程中,想要在Word中绘制不同类型的图形,可以通过类库来操作。控件Spire.Doc for .NET 6.0及以上版本开始支持Office Word中的所有图形,可以通过代码操作某个单一的形状,也可以通过将单一形状进行组合来获得想要的图形或形状效果,当然,也支持自己自定义图形,通过编程绘制也是可以的。下面将介绍向Word绘制形状和组合形状的方法,方法中的代码供参考。

    PS:

    • Spire.Doc for .NET获取地址
    • 安装后,dll文件可在安装路径下的Bin文件夹中获取
      Dll引用
      C# 绘制Word图形、组合图形

      二、代码示例

      (一)、绘制单一形状

      步骤1:添加如下using指定

    using Spire.Doc;
    using Spire.Doc.Documents;
    using Spire.Doc.Fields;
    using System.Drawing;
    

    步骤2:创建示例,添加section、paragraph

    //创建一个Document实例
    Document doc = new Document();
    //添加一个section paragraph
     Section sec = doc.AddSection();
     Paragraph para1 = sec.AddParagraph();
    

    步骤3:在文档指定位置插入形状,并设置形状类型、大小、填充颜色、线条样式等
    (这里简单列举几个形状的添加方法,方法比较简单,不做赘述,效果图中列举了部分形状样式,需要其他样式的形状可自行设置添加)

                //插入一个矩形
                ShapeObject shape1 = para1.AppendShape(50, 50, ShapeType.Rectangle);
                shape1.FillColor = Color.Blue;
                shape1.StrokeColor = Color.LightSkyBlue;
                shape1.HorizontalPosition = 20;
                shape1.VerticalPosition = 20;
    
                //插入一个圆形
                ShapeObject shape2 = para1.AppendShape(50, 50, ShapeType.Ellipse);
                shape2.FillColor = Color.Purple;
                shape2.StrokeColor = Color.LightPink;
                shape2.LineStyle = ShapeLineStyle.Single;
                shape2.StrokeWeight = 1;
                shape2.HorizontalPosition = 80;
                shape2.VerticalPosition = 20;
    
                //插入一个公式符号 +
                ShapeObject shape3 = para1.AppendShape(50, 50, ShapeType.Plus);
                shape3.FillColor = Color.DarkCyan;
                shape3.StrokeColor = Color.LightGreen;
                shape3.LineStyle = ShapeLineStyle.Single;
                shape3.StrokeWeight = 1;
                shape3.HorizontalPosition = 140;
                shape3.VerticalPosition = 20;
    
                //插入一颗星形
                ShapeObject shape4 = para1.AppendShape(50, 50, ShapeType.Star);
                shape4.FillColor = Color.Red;
                shape4.StrokeColor = Color.Gold;
                shape4.LineStyle = ShapeLineStyle.Single;
                shape4.HorizontalPosition = 200;
                shape4.VerticalPosition = 20;
    

    步骤4:保存文档

               //保存并打开文档
                doc.SaveToFile("InsertShapes.docx", FileFormat.Docx2010);
                System.Diagnostics.Process.Start("InsertShapes.docx");
    

    形状添加效果:
    C# 绘制Word图形、组合图形

    (二)、添加组合形状

    步骤1:添加如下using指令

    using Spire.Doc;
    using Spire.Doc.Documents;
    using Spire.Doc.Fields;
    using System.Drawing;
    

    步骤2:创建文档,添加section、paragraph

    Document doc = new Document();
    Section sec = doc.AddSection();
    Paragraph para1 = sec.AddParagraph();
    

    步骤3:添加文字,并应用格式到文字

    para1.AppendText("中日文化交流");
    ParagraphStyle style1 = new ParagraphStyle(doc);
    style1.Name = "titleStyle";
    style1.CharacterFormat.Bold = true;
    style1.CharacterFormat.FontName = "隶书";
    style1.CharacterFormat.FontSize = 30f;
    doc.Styles.Add(style1);
    para1.ApplyStyle("titleStyle");
    para1.Format.HorizontalAlignment = HorizontalAlignment.Center;
    

    步骤4:实例化段落2,并创建一个形状组合,并设置大小

    //实例化段落2
    Paragraph para2 = sec.AddParagraph();
    //创建一个形状组合并设置大小
    ShapeGroup shapegr = para2.AppendShapeGroup(300, 300);
    

    步骤5:绘制一个中国国旗,这里需要组合形状矩形和五角星形,并填充相应的颜色

                //添加一个矩形到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Rectangle)
                {
                    Width = 900,
                    Height = 500,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.Red,
                    StrokeColor = Color.Red,                
                    StrokeWeight = 1,
                });
    
                //添加第一个五角星到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Star)
                {
                    Width = 100,
                    Height = 100,
                    VerticalPosition = 90,
                    HorizontalPosition = 90,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.Yellow,
                    StrokeColor = Color.Yellow,
                    StrokeWeight = 1,
                });
                //添加第二个五角星到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Star)
                {
                    Width = 50,
                    Height = 50,
                    VerticalPosition = 40,
                    HorizontalPosition = 210,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.Yellow,
                    StrokeColor = Color.Yellow,
                    StrokeWeight = 1,
                });
                //添加第三个五角星到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Star)
                {
                    Width = 50,
                    Height = 50,
                    VerticalPosition = 80,
                    HorizontalPosition = 280,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.Yellow,
                    StrokeColor = Color.Yellow,
                    StrokeWeight = 1,
                });
                //添加第四个五角星到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Star)
                {
                    Width = 50,
                    Height = 50,
                    VerticalPosition = 160,
                    HorizontalPosition = 280,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.Yellow,
                    StrokeColor = Color.Yellow,
                    StrokeWeight = 1,
                });
                //添加第五个五角星到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Star)
                {
                    Width = 50,
                    Height = 50,
                    VerticalPosition = 220,
                    HorizontalPosition = 210,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.Yellow,
                    StrokeColor = Color.Yellow,
                    StrokeWeight = 1,
                });
    

    步骤6:绘制一个日本国旗,需要组合形状矩形和圆形,并填充颜色

              //绘制一个矩形并添加到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Rectangle)
                {
                    Width = 900,
                    Height = 500,
                    VerticalPosition = 700,
                    HorizontalPosition = 600,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.WhiteSmoke,
                    StrokeColor = Color.WhiteSmoke,
                    StrokeWeight = 1,
                });
                //绘制一个圆形并添加到形状组合
                shapegr.ChildObjects.Add(new ShapeObject(doc, ShapeType.Ellipse)
                {
                    Width = 250,
                    Height = 250,
                    VerticalPosition = 800,
                    HorizontalPosition = 900,
                    LineStyle = ShapeLineStyle.Single,
                    FillColor = Color.Red,
                    StrokeColor = Color.Red,
                    StrokeWeight = 1,
                });
    

    步骤7:保存文档

                //保存并打开文档
                doc.SaveToFile("InsertShapegroups.docx", FileFormat.Docx2010);
                System.Diagnostics.Process.Start("InsertShapegroups.docx");
    

    添加效果:
    C# 绘制Word图形、组合图形

    以上全部是关于Word中绘制图形形状的内容。如需转载,请注明出处!
    感谢阅读!

    转载于:https://blog.51cto.com/eiceblue/2125412

    展开全文
  • word2003中可以使用鼠标框选多个图形,可是在word2010中却只能使用ctrl+键标一个个点选,非常不便。 如果要实现框选,需要先插入一个画布,再在画布中绘制图形。已经绘制的图形可以粘贴到画布中。 插入画布操作:...


    一、问题描述

    在word2003中可以使用鼠标框选多个图形,可是在word2010中却只能使用ctrl+鼠标一个个点选,非常不便。

    如果要实现框选,需要先插入一个画布,再在画布中绘制图形。已经绘制的图形可以粘贴到画布中。

    插入画布操作:插入选项卡-->插图命令组-->形状-->新建绘图画布。绘制的画布可以拖动边框调整大小,还可以右键-->设置布局选项-->文字环绕-->浮于文字之上,这样可以使画布突破页边距的设置,甚至放大到页边距之外使画布看不到,感觉比较舒服些。

    框选工具在:开始选项卡-->编辑命令组-->选择-->选择对象。


    在画布中绘制图形可以框选了,但是发现选中了多个图形以后却不能使用对齐命令(格式选项卡-->排列命令组-->对齐下的:左对齐、右对齐……等等都是灰色的) 。

    而不在画布中绘制的图形,却能使用对齐命令。


    怎样才能在word2010中实现既能框选又能对齐呢,鱼与熊掌难道不能兼得吗?


    二、解决方法

    方法一:在PPT2010中绘制图形,两个功能都是可用的,不用画布直接绘制,完后再复制到word2010中。先设置下PPT的页面与word一致(如A4):设置选项卡-->页面设置-->幻灯片大小,在下拉列表中选择,这样可以直观地看到在word中的大小,不会复制后发现太大或太小。

    方法二:将文字另存为word97-2003格式,再打开,此时两个功能都可用,也是不用画布直接绘制即可。缺点是如果word2010文档中有其它2003不支持的格式,就会导致文档格式失真。

    方法三:使用VBA代码实现对齐功能(仍然需要在画布中才能框选)。这是高人的代码:

    Private Sub AlignHorizontal(ARate As Single)
    Dim Min, Max, i As Integer
        Min = 32768
        Max = -32768
        For Each AShape In Selection.ChildShapeRange
            If Min > AShape.Left Then
                Min = AShape.Left
            End If
            i = AShape.Left + AShape.Width / 20
            If Max < i Then
                Max = i
            End If
        Next AShape
        For Each AShape In Selection.ChildShapeRange
            AShape.Left = Min * (1 - ARate) + Max * ARate - AShape.Width / 20 * ARate
        Next AShape
    End Sub


    Private Sub AlignVertical(ARate As Single)
    Dim Min, Max, i As Integer
        Min = 32768
        Max = -32768
        For Each AShape In Selection.ChildShapeRange
            If Min > AShape.Top Then
                Min = AShape.Top
            End If
            i = AShape.Top + AShape.Height / 20
            If Max < i Then
                Max = i
            End If
        Next AShape
        For Each AShape In Selection.ChildShapeRange
            AShape.Top = Min * (1 - ARate) + Max * ARate - AShape.Height / 20 * ARate
        Next AShape
    End Sub


    Private Sub AlignShape(AHorizontal As Boolean, ARate As Single)
        If Selection.ChildShapeRange.Count = 0 Then
            Exit Sub
        End If
        If AHorizontal Then
            AlignHorizontal (ARate)
        Else
            AlignVertical (ARate)
        End If
    End Sub


    Sub AlignHorizontalLeft()
        AlignShape True, 0
    End Sub


    Sub AlignHorizontalCenter()
        AlignShape True, 0.5
    End Sub


    Sub AlignHorizontalRight()
        AlignShape True, 1
    End Sub


    Sub AlignVerticalTop()
        AlignShape False, 0
    End Sub


    Sub AlignVerticalMiddle()
        AlignShape False, 0.5
    End Sub


    Sub AlignVerticalBottom()
        AlignShape False, 1
    End Sub


    需要将以上代码添加到一个工具按钮上,方便调用。方法如下:

    (1)文件菜单-->选项-->自定义功能区-->勾选右侧列表框中的“开发工具”,确定。此时多出一“开发工具”选项卡。(在功能区上点右键也可出现“自定义功能区”,下同)

    (2)开发工具选项卡-->代码命令组-->Visual Basic(就是左边第一个按钮),在 Normal上右键,依次选插入-模块,然后将上面代码复制粘贴进来。点击工具栏上磁盘按钮保存。关闭开发工具。

    (3)添加一个新建选项卡,以便将代码添加到此按钮。

    (当然也可以添加到原有选项卡上,如格式选项卡,方法类似。但我不想影响原有选项卡,且便于找到命令就单独为其新建了一个选项卡)。

    文件菜单-->选项-->自定义功能区-->在右侧列表框下点“新建选项卡”按钮,此时列表中多出一个“新建选项卡(自定义)”,其下有一个"新建组(自定义)",分别右键-->重命名,将选项卡命名为"图形对齐",将组命名为"对齐"(名称随你喜欢自定)。

    (4)在“从下列位置选择命令”下拉列表框中选择“宏”,此时列出6个宏(Normal.模块1.Align...开头的6个),在右侧列表框中选择刚新建的"对齐"命令组。依次选中6个宏,点“添加”按钮,添加到“对齐”组下面。在刚添加的命令上依次右键-->重命名,其中:AlignVerticalBottom--底端对齐,AlignVerticalMiddle--上下居中,AlignVerticalTop--顶端对齐,AlignHorizontalRight--右对齐,AlignHorizonCenter--左右居中,AlignHorizontalLeft--左对齐。确定退出。

    完成。


    三、后记

    方法三较好地解决了对齐的问题,但是它没有实现平均分布的功能,这不能不说是一大遗憾。

    另外,Word2010中貌似没有图形布尔运算的功能,在自定义功能区对话框中的命令里没找到,不知是真没有还是我眼拙没找到。而图形运算功能在PPT2010中是有的。

    如果这两个问题解决了,那WORD2010的图形功能就算完美了吧。


    原文出处见http://www.docin.com/p-690220754.html,以上是结合我的实践重新整理的。

    展开全文
  • Word:表格中绘制斜线表头

    千次阅读 2019-01-06 19:35:48
    一、绘制一根斜线表头 把光标停留在需要画斜线的单元格中,点击菜单栏的【设计】-【边框】-【斜下框线】。 输入表头的文字,通过空格和回车控制它们在适当的位置。 二、绘制两根或多跟斜线表头 只能...
  • 在数学试卷、论文、电子教案等编写过程中,我们经常要作出数学图形或图像,若用Word自身携带的绘图工具绘制,多有不便。比如一些曲线的形状很难画得像,画到位,作图时修修改改,颇为费力,所以需要借助一些辅助工具...
  • 使用SmartArt绘制组织结构图 最终效果: 绘制步骤: 选择[插入] -> [SmartArt] -> [层次结构], 这里选择第一个组织结构图; 选中多余的框,用delete键删除; 添加新的层级框,鼠标焦点先定位在...
  • 流程图画的好可以让自己的设计思路更加简洁明了,不仅是对自己对...Word绘制流程图: 一:插入流程图图形 进入Word之后,在菜单栏中的工具中选择插入操作,之后点击下面的形状选项,在流程图区域选择流程图图形添加...
  • 1,先新建画布,进入「插入」-「插图」-「形状」-「新建画布」,然后拖动画布大小,我们后面的流程图就要在这个画布上绘制。 2,「插入」-「插图」-「形状」,插入各种图案完成后,我们可以按住「Ctrl」键不放,拖动...
  • 使用“绘图”工具栏,可以在文档中绘制各种形状的图形,包括线条、矩形、圆形、连接符、标注等,默认情况下,“绘图”工具栏显示在窗口的底部,具体操作方法就让Word联盟小编为大家带来分享! 动画演示: ...
  • Word图文混排之杂志封面排版教程 Word图文排版主要是通过...第一步:先绘制一个矩形,然后单击选定形状,依次单击【绘图工具】—【格式】—【形状填充】把矩形改为“深蓝色”,然后把形状轮廓改为“无轮廓” ...
  • 利用以上教程可以使用Origin绘制简单的三维堆积柱状图,本文主要记录一下其他需求,比如坐标轴范围修改、柱子颜色调整、堆积柱子形状调整、如何粘贴源文件到word等等。基本操作参考以上教程,下文体现较少。 一、...
  • word文档怎么画流程图

    万次阅读 2018-05-18 21:11:40
    当我们在制作Word文档时,有时候需要用到流程图,那么怎么在Word中如何绘制流程图呢?1.首先打开Word,点击菜单栏中的插入。2.点击插入中的形状3.选择形状4.点击插入形状下拉菜单中的新建绘图画布5.选择线条,将鼠标...
  • word使用技巧大全

    热门讨论 2011-03-18 20:37:53
    十七 Word绘制图形技巧 38 (一) 绘制图形的技巧 38 1.画直线 38 2.画弧 38 3.画矩形 38 (二) 选择图形的技巧 38 (三) 改变图形大小的技巧 38 1.改变某条线段的长短 38 2.改变图形(或图片)的大小 38 (四) 移动...
  • Word自带的图形绘制工具,难免有点不够专业,功能也不是很完善,使用亿图专业流程图、网络图制作工具,不仅可以完成普通流程图的制作,还可以完成专业网络图的绘制,它界面美观,操作简单,自带的丰富素材库能帮你...
  • Word中插入Visio留空太大怎么办

    千次阅读 2020-10-10 11:30:47
    1 在Word中插入Visio图 插入——对象 2 选择Visio格式 3 直接绘制/粘贴之前绘制的 ...6 绘制完成后,直接插入Word留白处理 在Visio中,图最外边边的地方,按住Ctrl,可以控制留白区域 如图所示,点保存即可 ...
  • 项目进展图不在Excel、不在word里面绘制了,而是采用excel+visio来绘制。虽然第一次可要麻烦些,不过可谓是一劳永逸。下图的项目进展图,可以通过刷新功能自动更新图形里面的数据:一、excel用来存储项目进展的数据...
  • WORD目录制作时有两种方式,一种是之前文章介绍过的通过WORD...第一步:绘制左侧直角三角形状,然后选定形状执行【绘图工具】—【格式】—【翻转】—【垂直翻转】,然后为其填充图片,【形状填充】—【图片】,效果...
  • Word插入图像

    2020-06-16 10:54:47
    1、插入形状 可以通过插入选项卡插入图形,有多种自带图形可供选择。 插入图形需要用鼠标绘制出来大小才能正常插入,然后点击该图形可以设置其样式及大小。 2、插入图形 插入图片之后点击格式选项卡,可以针对...

空空如也

空空如也

1 2 3 4 5 ... 10
收藏数 183
精华内容 73
关键字:

word绘制形状