Process become idle when accessing microsoft word 2007 document


hi,

we have problem in production enviroment. in production environment have windows service developed in c#.net. windows service access microsoft word i.e winword.exe mail merging , sending documents persons via email , printers. service running sucessfully last 70 days. windows service becomes idle state when process first word document that means when it access winword.exe,  not getting exceptions also. client applied of latest updates microsoft office 2007, windows server 2003. the task manager has around 10 to 20  winword.exe processes. logic in windows service follows

wordapplication =

 

reflectionhelper.createobject("word.application");

 

 

reflectionhelper.setproperty(wordapplication, "visible", objfalse);

worddocument =

 

reflectionhelper.getproperty(wordapplication, "documents");

 

 

object saveformat = "dot";

 

 

reflectionhelper.setproperty(wordapplication, "defaultsaveformat", saveformat);

 

 

object[] addparam = new object[16];

addparam[0] = ofilename;

addparam[1] = addparam[2] = addparam[3] =

 

type.missing;

addparam[4] = addparam[5] = addparam[6] = addparam[7] =

 

type.missing;

addparam[8] = addparam[9] = addparam[10] = addparam[11] =

 

type.missing;

addparam[12] = addparam[13] = addparam[14] = addparam[15] =

 

type.missing;

worddocument =

 

reflectionhelper.invokemethod(worddocument, "open", addparam);

 

 

object formfields = reflectionhelper.getproperty(worddocument, "fields");

 

 

 

i need fix very urgently.

any quickly would appreciated.

thank in advance

 

hi,

i suggest posting thread in office developers forum, should have more professional knowledge on , may effective solution timely. convenience, list office developers forum link below:

http://social.msdn.microsoft.com/forums/en/category/officedev 



Microsoft Office  >  Word IT Pro Discussions



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2