No Excel events with No Touch Deployment?

S

shane Carter

I have a WinForm app which opens Excel (using Automation)
and traps Excel's Workbook_beforeclose event. The handler
for this event executes when the app is run as a
standalone exe. However, when the app is deployed using No
Touch Deployment technology and accessed from the browser
the events are not triggered, but other features of the
app (like accessing web service etc.) are not affected.
By the way, the app is a strong named one and it is
running with "Full Trust" rights.

Any ideas?
 
O

Ophir Baghdadi

I have a similar problem too. Is this because
IEExec is the process running the windows forms
and Excel.exe is not able to determine which
thread called it and who registered the callback
hook?

I would appreciate any comments on this.

O. Baghdadi
 
S

Seraphim Mizrahi

Did you try a different "Membership Condition" other
than "Strong Name"? Like URL.
 
S

Shane Carter

That worked. Is this a Microsoft bug. Can anyone from
Microsoft answer this?
 
S

Seraphim Mizrahi

IEExec only supports Site and URL evidence. If you change
the codegroup Membership condition to Site or URL instead
of Strong Name, it should work.
 

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