Foxtable(狐表)用户栏目专家坐堂 → 骑缝章


  共有3690人关注过本帖平板打印复制链接

主题:骑缝章

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107896 积分:548849 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/5/30 15:12:00 [只看该作者]

试试,自行设置不同的边距看效果

Dim app As New MSWord.Application
try
    Dim fileName = "e:\123.docx"
    Dim doc As object = app.Documents.Open(fileName)
    
    Dim img = "e:\123.jpg" '图片路径
        Dim Top As Integer = 100 '上边距
    Dim left As Integer = 100 ‘左边距’
    Dim w As Integer = 0 ‘宽
    Dim h As Integer = 0 ‘高
    doc.Shapes.AddPicture(img, False, True, left ,Top ,w,h)
    
    app.visible = True
    'Doc.save
catch ex As exception
    msgbox(ex.message)
    app.Quit
End try

 回到顶部
总数 14 1 2 下一页