Word could not fire the event

  • Thread starter Wilfredo A. Estrada III
  • Start date
W

Wilfredo A. Estrada III

Hi, I need help with mail merge in asp.net C#.

I keep getting this "Word could not fire the event" exception when I try to
do mail merge.

This is the piece of the code btw:

object templatePath = /*Request.PhysicalApplicationPath +*/ @"D:\\CRMS 2.0
v2.1\\CRMS Apps\\Template Badges.dot";
object oFilename = Environment.CurrentDirectory + @"C:\\Saved.doc";
object oReadOnly = false;
object oVisible = true;
object oMissing = System.Reflection.Missing.Value;

wrdDoc = wrdApp.Documents.Open(ref templatePath, ref oMissing, ref
oReadOnly,
ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref
oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oVisible, ref oMissing, ref
oMissing, ref oMissing, ref oMissing);

wrdDoc.Activate();

The exception occurs at the wrdApp.Documents.Open method.

Please help, thank you..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top