How to Embed/Host Excel in WPF application
I am trying to embed Excel workbook in WPF application using Microsoft.Office.Interop.Excel
I am able to open the workbook and embed it into WPF using win32 api SetParent.
after embedding the workbook upon executing VBA (just a debug statement in selection change event handler) causes the workbook goes deactivate and to work with it again it needs to be activated using double clicking on the workbook.
Expectactions: it needs to be working same as standalone excel application embedded in WPF application.
1 answer
Sort by: Most helpful
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
1 deleted comment
Comments have been turned off. Learn more