0

I am trying to open the word document as follows.

 wordDocument = wordApplication.Documents.Open(ref paramSourceDocPath, 
   ref paramMissing, ref paramMissing, ref paramMissing, ref paramMissing, 
   ref paramMissing, ref paramMissing, ref paramMissing, ref paramMissing, 
   ref paramMissing, ref paramMissing, ref paramMissing, ref paramMissing, 
   ref paramMissing, ref paramMissing, ref paramMissing);

And i am receiving the error Attempted to read or write protected memory.

tshepang
  • 12,111
  • 21
  • 91
  • 136
moejoe11
  • 885
  • 3
  • 11
  • 14
  • This is the sort of thing that can happen if you access Word or other Office products through the Automation interfaces, from a multi-threaded or server application. – John Saunders Feb 20 '11 at 22:40

1 Answers1

-1

I'm pretty sure that all those paramMissing reference arguments are your problem.

Paul Sonier
  • 38,903
  • 3
  • 77
  • 117