VB6.0 如何将图形文件插入word 5
2个回答
展开全部
copy 方法就可以了
追问
VB 语句怎么写啊?
追答
先在工程引用microsoft word
textbox1 是判定条件 你的emp图片名称
dim filen as DirectoryInfo
dim file as string
dim fil as string
dim fi as integer
file = Dir(path & "*.EMF")
fil=file.split(".")(0)
fi=Dir(path & "*.EMF").count
for i as integer=1 to fi
if textbox1=fil then
Dim WordApp As Word.Application
Dim WordDoc As Word.Document
wordapp=new word.application
WordApp.Visible = True
WordApp.Documents.Add
WordApp.ActiveDocument.Shapes.AddPicture "path &".bmp""
WordApp.ActiveDocument.Save
next
求给精,路过的兄弟给个赞
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询