Can not catch the Command Execute Event in OWC10

  • Thread starter Joerg Battermann
  • Start date
J

Joerg Battermann

Hi,

I am having problem catching the CommandExecuteEvent in my
Windows Application written in C#

My eventhandler get never cold it worked fine in OWC9.
Does someone has similiar problems or better what am I
doing wrong?


this.m_sheet.CommandExecute += new
AxOWC10.ISpreadsheetEventSink_CommandExecuteEventHandler
(this.axSpreadsheet1_CommandExecute);

private void m_sheet_CommandExecute(object sender,
AxOWC10.ISpreadsheetEventSink_CommandExecuteEvent e)
{
MessageBox.Show(e.command.ToString());
}
 
J

Joerg Battermann

Hi,

I am having problem catching the CommandExecuteEvent in my
Windows Application written in C#

My eventhandler get never cold it worked fine in OWC9.
Does someone has similiar problems or better what am I
doing wrong?


this.m_sheet.CommandExecute += new
AxOWC10.ISpreadsheetEventSink_CommandExecuteEventHandler
(this.m_sheet_CommandExecute);

private void m_sheet_CommandExecute(object sender,
AxOWC10.ISpreadsheetEventSink_CommandExecuteEvent e)
{
MessageBox.Show(e.command.ToString());
}
..
Thanks Joerg
 
A

Alvin Bruney [MVP]

have you built an rcw for the spreadsheet according to microsoft
specifications? if you haven't, you need to go to the microsoft website
where there is an article on hooking the spreadsheet to events. it isn't
hooked up by default.
 
J

Joerg Battermann

Thank you for your help. This was exactly the problem

Now it works again.
Joerg
-----Original Message-----
have you built an rcw for the spreadsheet according to microsoft
specifications? if you haven't, you need to go to the microsoft website
where there is an article on hooking the spreadsheet to events. it isn't
hooked up by default.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Hi,

I am having problem catching the CommandExecuteEvent in my
Windows Application written in C#

My eventhandler get never cold it worked fine in OWC9.
Does someone has similiar problems or better what am I
doing wrong?


this.m_sheet.CommandExecute += new
AxOWC10.ISpreadsheetEventSink_CommandExecuteEventHandler
(this.m_sheet_CommandExecute);

private void m_sheet_CommandExecute(object sender,
AxOWC10.ISpreadsheetEventSink_CommandExecuteEvent e)
{
MessageBox.Show(e.command.ToString());
}
.
Thanks Joerg


.
 
A

Abhilash

Can you please provide me the link that solved your problem.. I searched but
couldnt find it..

Best regards,
Abhilash
Joerg Battermann said:
Thank you for your help. This was exactly the problem

Now it works again.
Joerg
-----Original Message-----
have you built an rcw for the spreadsheet according to microsoft
specifications? if you haven't, you need to go to the microsoft website
where there is an article on hooking the spreadsheet to events. it isn't
hooked up by default.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Hi,

I am having problem catching the CommandExecuteEvent in my
Windows Application written in C#

My eventhandler get never cold it worked fine in OWC9.
Does someone has similiar problems or better what am I
doing wrong?


this.m_sheet.CommandExecute += new
AxOWC10.ISpreadsheetEventSink_CommandExecuteEventHandler
(this.m_sheet_CommandExecute);

private void m_sheet_CommandExecute(object sender,
AxOWC10.ISpreadsheetEventSink_CommandExecuteEvent e)
{
MessageBox.Show(e.command.ToString());
}
.
Thanks Joerg


.
 

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