techprocess
asked on
microsoft word / excel interop issue
hi,
I am working on word / excel automation asp.net project in which i am copying content from
Excel file to Word file using word template (.dot file).
I am using word & excel object library 11.0 , framework 1.1 on windows 2000 sp4.
Code :
//open excel file
oExcelApplic = new ApplicationClass ();
oWorkBook = oExcelApplic.Workbooks.Ope n(strFileN ame,0,true ,5,"","",f alse,Excel .XlPlatfor m.xlWindow s,"",false ,false,0,f alse,missi ng,missing );
oWorkSheet = (Excel.Worksheet) oWorkBook.Worksheets.get_I tem(1);
//open word file
oWordApplic = new Word.ApplicationClass();
object fileName = strFileName;
object readOnly = false;
object isVisible = true;
object missing = System.Reflection.Missing. Value;
// I get error at this line after file system change from FAT32 to NFTS
oDoc = oWordApplic.Documents.Open (ref fileName, ref missing,ref readOnly,
ref missing, ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref isVisible,ref missing,ref missing,ref missing,ref missing);
oDoc.Activate();
Initially code was working fine when my file system was FAT32 with <identity impersonate = "true" /> in config file
But after conversion to NTFS I get error while opening word template file.
ERROR:- "There is insufficient memory. Save the document now."
I have given necessary permission for word and excel in dcom manager but still got the same error. I even tried by giving all permissions to Everyone in dcom but in vain.
Please help me in this.
Any link about configuration / permission requirements for using word / excel object libraries?
I am working on word / excel automation asp.net project in which i am copying content from
Excel file to Word file using word template (.dot file).
I am using word & excel object library 11.0 , framework 1.1 on windows 2000 sp4.
Code :
//open excel file
oExcelApplic = new ApplicationClass ();
oWorkBook = oExcelApplic.Workbooks.Ope
oWorkSheet = (Excel.Worksheet) oWorkBook.Worksheets.get_I
//open word file
oWordApplic = new Word.ApplicationClass();
object fileName = strFileName;
object readOnly = false;
object isVisible = true;
object missing = System.Reflection.Missing.
// I get error at this line after file system change from FAT32 to NFTS
oDoc = oWordApplic.Documents.Open
ref missing, ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref isVisible,ref missing,ref missing,ref missing,ref missing);
oDoc.Activate();
Initially code was working fine when my file system was FAT32 with <identity impersonate = "true" /> in config file
But after conversion to NTFS I get error while opening word template file.
ERROR:- "There is insufficient memory. Save the document now."
I have given necessary permission for word and excel in dcom manager but still got the same error. I even tried by giving all permissions to Everyone in dcom but in vain.
Please help me in this.
Any link about configuration / permission requirements for using word / excel object libraries?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Forced accept.
Computer101
EE Admin
Computer101
EE Admin
Aia Software B.V. - http://www.aia-itp.com
Polar - http://www.polarsoftware.com
SoftArtisans - http://www.softartisans.com
SyncFusion- http://www.syncfusion.com
Keylogix - http://www.activedocs.comback to top