P
Peter Meinl
Using OWC 11 Spreadsheet events in ASP.NET 2.0 JavaScript causes IE6 to
crash.
I need to use the events for IsDirty handling and for validating formula
results (which OWC Spread seems not to support in contrast to Excel).
Steps to reproduce:
1.
Change a cell value and press tab
The event handler alerts the change.
Click OK.
2.
Click the button named "Button".
OWC.dll crashes.
Complete source code:
----------------------
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb"
Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<object id="SpreadSheet1"
classid="CLSID:0002E559-0000-0000-C000-000000000046"
style="width:49%;height:350"></object>
<div>
<asp:Button ID="Button1" runat="server" Text="Button" /></div>
<script type="text/javascript">
function onSheetChange (Sh, Target)
{
alert ('R' + Target.Row + 'C' + Target.Column + ' changed to: ' +
Target.Value);
}
document.getElementById('SpreadSheet1').attachEvent('sheetchange',
onSheetChange);
</script>
</form>
</body>
</html>
crash.
I need to use the events for IsDirty handling and for validating formula
results (which OWC Spread seems not to support in contrast to Excel).
Steps to reproduce:
1.
Change a cell value and press tab
The event handler alerts the change.
Click OK.
2.
Click the button named "Button".
OWC.dll crashes.
Complete source code:
----------------------
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb"
Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<object id="SpreadSheet1"
classid="CLSID:0002E559-0000-0000-C000-000000000046"
style="width:49%;height:350"></object>
<div>
<asp:Button ID="Button1" runat="server" Text="Button" /></div>
<script type="text/javascript">
function onSheetChange (Sh, Target)
{
alert ('R' + Target.Row + 'C' + Target.Column + ' changed to: ' +
Target.Value);
}
document.getElementById('SpreadSheet1').attachEvent('sheetchange',
onSheetChange);
</script>
</form>
</body>
</html>