You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It turns out that MiniExcel doesn't recognize HashTable class, it has to be System.Collections.Generic.Dictionary"[String,Object]"
In PowerShell it would be:
$Value = New-Object System.Collections.Generic.Dictionary"[String,Object]"
$Value.Add("title", "FooCompany")
$Value.Add("managers", $managers)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to output DataTable to existing Excel template.
This is the template:
I'm populating a data table in PowerShell and then running this:
[MiniExcelLibs.MiniExcel]::SaveAsByTemplate($ExcelPath, $template, $DataTable)
The output file is empty:
What am I doing wrong or is it not supported?
Beta Was this translation helpful? Give feedback.
All reactions