excel add-in fails in workbook.open

S

shrutzin

hi
i am trying to determine whether a excel addin file is right protected or
not and for this purpose i first try to open it:

Microsoft.Office.Interop.Excel.Workbook wb =
excelApp.Workbooks.Open(eFileName.xla, 0, false, 5, "", "", false,
Microsoft.Office.Interop.Excel.XlPlatform.xlWindows,

"", true, false, 0, true,
false, false);

where it gives the exception: Cannot open Microsoft Office Excel Add-In for
edi
ting. Please edit the source document instead.
what does this mean?
I am using office 2003.

thanks in advance.
 
S

shrutzin

shrutzin said:
hi
i am trying to determine whether a excel addin file is right protected or
not and for this purpose i first try to open it:

Microsoft.Office.Interop.Excel.Workbook wb =
excelApp.Workbooks.Open(eFileName.xla, 0, false, 5, "", "", false,
Microsoft.Office.Interop.Excel.XlPlatform.xlWindows,

"", true, false, 0, true,
false, false);

where it gives the exception: Cannot open Microsoft Office Excel Add-In for
edi
ting. Please edit the source document instead.
what does this mean?
I am using office 2003.

thanks in advance.

well i changed the editable parameter from true to false and atleast this
line is working but now the exception is coming at :
wb.Permission.Enabled--
and is:
0x80010105 RPC_E_SERVERFAULT
the server threw an exception
Any information would help.
thanks in advance.
 

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