05-10-2011, 07:10 AM
TheVig Wrote:Doesn't work.
Get error:
0x800A175D,
System Info:
Windows 7 Profession
Office 2010
Try with IDispatch.
Macro Macro1543
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.