Powershell crashes when creating a Crystal Reports object

A

Altraf

Hi All

I'm trying to work with Crystal Reports in Powershell. I found an example
that I'm trying to use as the base for my project. However, I have issues
straight away in that when I try to create a report Powershell crashes. Below
is the code I'm using:

[reflection.assembly]::LoadWithPartialName('CrystalDecisions.Shared')

[reflection.assembly]::LoadWithPartialName('CrystalDecisions.CrystalReports.Engine')

$report = New-Object CrystalDecisions.CrystalReports.Engine.ReportDocument

Any assistance would be appreciated.

Thanks.

Alan
 

My Computer

Top