Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get text from Word doc
#9
TheVig Wrote:Doesn't work.

Get error:
0x800A175D,

System Info:
Windows 7 Profession
Office 2010

Try with IDispatch.

Macro Macro1543
Code:
Copy      Help
out
;start Word, make visible, get Documents interface
IDispatch app._create("Word.Application")
;app.Visible = TRUE
IDispatch docs=app.Documents
;load file
VARIANT d=_s.expandpath("$documents$\notes.doc")
IDispatch doc=docs.Add(d)
;text
out doc.Content.Text
app.Quit

Also try how works in exe. Let exe run as User.


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)