DIM Object AS QOLEOBJECT
CREATE Explorer AS QOLECONTAINER
Left = 220
Top = 75+20
Width=RichEdit.Width
Height = RichEdit.Height
visible=false
END CREATE
IF INSTR (filename$, "doc")>0 THEN
Object.CreateObject("Word.Basic")
Object.AppMinimize
Object.fileOpen(filename$)
Object.EditSelectAll
Object.EditCopy
FileEdit.PasteFromClipboard
Object.FileExit
END IF
|