Public/Invoke-CrystalDecisionAssembliesLoad.ps1

1
2
3
4
5
6
7
8
9
10
Function Invoke-CrystalDecisionAssembliesLoad{
try{
    Write-Log "loading CrystalDecisions assemblies that we need" Debug
[System.Reflection.Assembly]::LoadWithPartialName("CrystalDecisions.CrystalReports.Engine") | Out-Null
[System.Reflection.Assembly]::LoadWithPartialName("CrystalDecisions.Shared") | Out-Null
}
catch{
    Write-Log "Could not load the needed assemblies... TODO: Figure out and document how to install the needed assemblies. (I would start with the SQL feature pack)" Error -ErrorAction Stop
}
}Export-ModuleMember -Function Invoke-CrystalDecisionAssembliesLoad