0

我有一个脚本,它用附加信息填充了一个 word 文档。其中之一是当前公司的标志。我将此图像添加到文档中,如下所示:

imgPath = saveFileAsTempFile(oDoc,oFile,"Logotype")
If oFile.FileExists(imgPath) Then
    oExternDoc.Sections(1).headers(2).Range.InlineShapes.AddPicture(imgPath)
    Set tables = oExternDoc.Sections(1).Headers(2).Range.Tables
    If tables Is  Nothing Then
    Else
        Factor = (tables(1).Rows(1).Height - oExtApp.CentimetersToPoints(0.05)) / oExternDoc.Sections(1).headers(2).Range.InlineShapes(1).Height  * 100
    End If 
    oExternDoc.Sections(1).headers(2).Range.InlineShapes(1).ScaleHeight = Factor
    oExternDoc.Sections(1).headers(2).Range.InlineShapes(1).ScaleWidth = Factor
End If

我的问题:

标题中已经有一个徽标,应该被覆盖。在 Word 2010 中,新插入的 logo 被添加到旧 logo 之上,因此只有上面的一个可见,这完全没问题。但现在在 Word 2016 中,两个徽标都显示在一个下方。有没有办法像以前一样将插入的图像放在现有图像的顶部?

字 2010: 在此处输入图像描述

2016 年的话: 在此处输入图像描述

4

0 回答 0