TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Administrator
Tech Writer
2.2k
1.5m
Excel Event Handlers
Apr 3 2003 8:43 PM
Hello all, I am trying to initiate the edit of an Excel Workbook from within my applicattion and then intercept the Window Deactivate event. The opening of the Workbook works fine. But I keep getting an An unhandled exception of type 'System.InvalidCastException' occurred in interop.excel.dll Additional information: No such interface supported error during runtime for the line theExcelApp.WindowDeactivate += new Excel.AppEvents_WindowDeactivateEventHandler(ExcelWindow_Deactivate); I am using the Visual Studio IDE and it provided me with the EventHandler designation. I am at a loss. If anybody can tell me the proper way of assigning an EventHandler to an Excel Application Event, I would be much obliged.
Reply
Answers (
3
)
Vc++ C# interoperability problem
ADOX initialisation problem