How to use XsPDF Library for .NET to merge PDF documents in C#
, Format, Directory, ReportXslFileDefaultOrCustom, ReportXslFile. You pass 7 arguments: $svc.WriteReport2(@($body.Id), 'PDF', 0, 0, '', $null, $false) Figure out the one you don't need and delete . it. Just to help you out. This is how Powershell sees it: Ids - @($body.Id) ReportName - 'PDF' Format - 0 Directory - 0 ReportXslFileDefaultOrCustom - '' ReportXslFile - $null ? - $false Directory - 0 looks weird to me, but you are the only one who knows what the correct values should be .