Exception "Access is denied" thrown in OWC10.Range.Copy() method.

K

Ketil Parow

This situation is generated on the server while trying to excute the following code:

SpreadsheetClass ss = new SpreadsheetClass();
ss.XMLURL = "c:\\temp\\testsheet.xml";
Worksheet ws = ss.ActiveSheet;
((Range) ws.Cells[3,4).Copy((ws.Cells[4,4]));

I get the same result if I try doing Copy and paste, like this:

((Range) ws.Cells[3,4]).Copy(Type.Missing);
((Range) ws.Cells[4,4]).Paste();

We are using OWC XP (Interop.OWC10.dll, file version 1.1.0.0).
The application is built and run under ASP.NET v 1.1.

Is there any way around this, or is a bug in the OWC component?
 
Top