DMFO icon indicating copy to clipboard operation
DMFO copied to clipboard

Get Constants from System

Open lcnittl opened this issue 5 years ago • 1 comments

Instead of defining all enumerations, use them from the system, like:

[Microsoft.Office.Core.MsoTriState]::msoFalse

Looks like this has to be activated: https://stackoverflow.com/questions/5932794/microsoft-office-core-reference-missing Can this be done from the script? Otherwise, use of DMFO would be more complicated.

lcnittl avatar Jun 04 '20 10:06 lcnittl

Add as assembly? Add-Type -AssemblyName ???

https://www.sqlservercentral.com/blogs/powershell-add-type-%E2%80%93-where%E2%80%99s-that-assembly

lcnittl avatar Jun 04 '20 20:06 lcnittl