Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

Created Unassigned: Excel ProtectedViewWindowDeactivateEvent not firing [20531]

$
0
0
Working with protected view on excel document. The ProtectedViewWindowDeactivateEvent is not firing. Not sure why as it does with the word documents. Already compared the event signatures in the two event api and things looks great. Wan't able to debug into why the event doesn't fire.

When the WorkbookOpenEvent does fire after the Protected View :"Enable Editing" button is pressed the Application.ActiveWorkbook is not populated.

Ultimately I need to initialize some code when the document comes out of protected view mode. Need a handle to the ActiveWorkbook.

Made an example to help diagnose why this is happening.

[Example 10](http://www.example.com)(https://bitbucket.org/kirk98445/netoffice-examples/src/2c0e9b1a5de9b82a31389545dba54cb7caa85e64/ExcelExamples/Examples/Example10.cs)

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>