are owc events independent from browser events

T

tuarek

Hi all,

When I try to enable the spreadsheet's protection in IE's window.onload
event, a "protection is on" error occurs in owc spreadsheet's
loadcompleted event.

Where should I be protecting my spread sheet object. Any suggestions
from your prior experiences?

Regards,

Mehmet
 
A

Alvin Bruney - MVP ASP.NET

Yes they are. Events are fired within the ActiveX control first from user
interaction. Unhandled, they bubble up the browser where they are usually
ignored.

You can protect anywhere on the client. The error message you are receiving
is because you are trying to add data to a protected cell somewhere. That
action results in an exception. Before adding data, you need to check the
protection property and remove it first, then add data and re-protect. Make
sense?

--
Regards,
Alvin Bruney

Shameless Author Plug
[The Microsoft Office Web Components Black Book with .NET]
www.lulu.com/owc, Amazon, Barnes & Noble etc
Forth-coming VSTO.NET
 
T

tuarek

Alvin,

I use csvurl to load data. BTW: SpreadSheet is unprotected before this
statement.

I guess that onload and loadcompleted events are sometimes running
simultaneously. That is causing the problem.
It seems that owc11&10's csvurl performance is slower than owc9. I
never had this problem in owc9.0

Thanks for your replies.

Regards,

Mehmet
 

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