cPicturePath="D:\My Documents\My Pictures\"
Select 0
Crea Cursor Pictures (FileName C(30))
Abc=Adir(Lkj,cPicturePath+"*.jpg")
If Abc>0
Appe from Array Lkj
WordApp=CREATEOBJECT("Word.application")
WordApp.Documents.Add
WordTable=WordApp.Documents(1).Tables.Add(WordApp.Documents(1).Range(0,0),1,1)
Go top
Do whil !eof()
WordApp.Documents(1).InlineShapes.AddPicture((cPicturePath+Alltrim(Filename)),.f.,.t.,WordTable.Cell(1,1).Range)
WordApp.Documents(1).InlineShapes(1).Height =160 &&图片的高底
WordApp.Documents(1).InlineShapes(1).Width=200 &&图片的宽度
Skip
Enddo
WordApp.Visible=.t.
Endif
Use