Link to home
Start Free TrialLog in
Avatar of techprocess
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.Open(strFileName,0,true,5,"","",false,Excel.XlPlatform.xlWindows,"",false,false,0,false,missing,missing);
oWorkSheet = (Excel.Worksheet) oWorkBook.Worksheets.get_Item(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?
ASKER CERTIFIED SOLUTION
Avatar of S31B1
S31B1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of S31B1
S31B1

If you want to create docs server side, you will need to find a .NET component for Server side cretion of office documents. Some companys with suitable products are: -

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
Forced accept.

Computer101
EE Admin