C
C#16mo ago
Mechno

❔ C# Excel Interop - sensitivity label

Is there a way to set a sensitivity label from code? Otherwise if i create the file and save it, it prompts the user to set sensitivity label and keeps the file locked so i cannot access it anymore.
3 Replies
Frostshoxx
Frostshoxx16mo ago
If I recall correctly, excel interop will create a GUI-less excel app. If you don't kill it at the end of your code routine, it may hold the file permission until you restart the machine or go kill it from the task manager.
Mechno
MechnoOP16mo ago
that could maybe be a one solution to just kill the app instead of closing it. but still it would be better if there was a way to set that sensitivity label from code.
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server